Border in Gantt Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TTApp
Newbie
Newbie
Posts: 3
Joined: Thu Feb 21, 2019 12:00 am

Border in Gantt Chart

Post by TTApp » Wed Mar 06, 2019 11:48 am

Currently we are having an issue with a Gantt chart in our Xamarin.Android and Xamarin.iOS application.
We recently upgraded our TeeChart dlls from version 4.15.07.01 to 4.2018.10.3 to fix a crash occurring on newer Android and iOS versions. This is a 3 year version leap, so with it came the expected visual changes and issues.

In the 2015 version our gantt chart it looked like this:
old_img.png
old_img.png (48.89 KiB) Viewed 1132 times
Using the 2018 TeeChart build it looks like this:
new_img.PNG
new_img.PNG (21.47 KiB) Viewed 1131 times
While the marks, bottom axis looks mostly the same and works fine, the borders and grid lines are missing.

I managed to restore the grid lines using:

Code: Select all

tChart.Axes.Bottom.Grid.DrawEvery = 1;
tChart.Axes.Bottom.Grid.Visible = true;
However, I cannot seem to restore the black border around the chart. I've tried the Wall properties, the Panel.BorderPen properties etc. but to no avail.
Is there any way to re-create such a border in v2018?

I've added a test app to this post with an example chart showcasing this issue.
Attachments
TeeChartTestApp.zip
(102.42 KiB) Downloaded 65 times

Pep
Site Admin
Site Admin
Posts: 3165
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Border in Gantt Chart

Post by Pep » Thu Mar 07, 2019 6:10 pm

Hello,
However, I cannot seem to restore the black border around the chart. I've tried the Wall properties, the Panel.BorderPen properties etc. but to no avail.
Is there any way to re-create such a border in v2018?
sure, to bring this default look to previous versions you can use a single line:

Code: Select all

tChart.CurrentTheme = ThemeType.Opera;

TTApp
Newbie
Newbie
Posts: 3
Joined: Thu Feb 21, 2019 12:00 am

Re: Border in Gantt Chart

Post by TTApp » Fri Mar 08, 2019 2:05 pm

Thank you very much for the response. While this did revert the style the right and top borders still seem to be missing.
Changing the wall/border settings on the chart doesn't seem to make them appear or change.
newimg_teechart.PNG
newimg_teechart.PNG (72.45 KiB) Viewed 1101 times
What could be the cause of this?

Pep
Site Admin
Site Admin
Posts: 3165
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Border in Gantt Chart

Post by Pep » Mon Mar 11, 2019 9:11 am

Hello,

ok, I think that back wall still invisible. Adding the following lines of code should make the change :

Code: Select all

			tChart.Walls.Back.Transparent = false;
			tChart.Walls.Back.Pen.Visible = true;
			tChart.Walls.Back.Visible = true;

TTApp
Newbie
Newbie
Posts: 3
Joined: Thu Feb 21, 2019 12:00 am

Re: Border in Gantt Chart

Post by TTApp » Mon Mar 11, 2019 12:40 pm

Restoring the back wall resolved the issue. Thank you very much for your help!

Post Reply