Labels in Gantt chart disappear in new build

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Exact Software
Newbie
Newbie
Posts: 7
Joined: Fri Nov 15, 2002 12:00 am
Location: Delft - the Netherlands
Contact:

Labels in Gantt chart disappear in new build

Post by Exact Software » Thu Feb 12, 2004 3:42 pm

Since i am using the last build (1.1.1499.42325) i have a problem with my gantt charts.

Some of the labels (Y-Axis) don't appear on the chart anymore. When i am stepping through my code i see that the Add method is called correctly.

Code: Select all

Public Function Add(ByVal start As Date, ByVal endDate As Date, ByVal y As Double, ByVal text As String) As Integer
The Gantt shapes are drawn correctly in the grid, it's just the labels.

Does anybody encountered the same problems or did you guys @ steema know of this problem ?

Thanks in advance 4 your answers !

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

Post by Pep » Fri Feb 13, 2004 10:10 am

Hi,

could you please post the code you're using in the steema.public.attachments newsgroup so we can reproduce the problem "as is" here ?

Exact Software
Newbie
Newbie
Posts: 7
Joined: Fri Nov 15, 2002 12:00 am
Location: Delft - the Netherlands
Contact:

Post by Exact Software » Fri Feb 13, 2004 2:40 pm

Dear Pep,

Thanks for your answer. Unfortunately i cannot send you the complete code, it is built on top of our own DLL's.

I can give you some snippets though: this is basically how my code works.

In an aspx page I declare a webchart, and add a gantt series

Code: Select all

Dim wchart  As Web.WebChart = New Web.WebChart
Dim chart As Chart = wchart.chart

Dim Planned As Styles.Gantt = chart.Series.Add(New Styles.Gantt())
Planned.Title = "Planned"
Planned.XValues.DateTime = True
....
Then i add data to the series, looping through a query result.

Code: Select all

Dim v(,) As Object = Query()
...

For i As Integer = 0 To Ubound(v)
	...
	Planned.Add(v(i, 0), v(i, 1), i, v(i, 2))
	...
Next
Then i export the chart to a PNG, store it in the session and parse it on my page. (parsing not in code sample)

Code: Select all

Dim ms As new MemoryStream
chart.Export.Image.PNG.Save(ms)
Session(chartid) = ms
...
I verified that every time i call the Planned.Add i pass correct values. This worked perfectly OK in the version for the 1.0 framework but in the latest build the labels disappear.

Exact Software
Newbie
Newbie
Posts: 7
Joined: Fri Nov 15, 2002 12:00 am
Location: Delft - the Netherlands
Contact:

Post by Exact Software » Tue Feb 24, 2004 9:07 am

Can anybody please look into this problem, or tell me what more information you need ?

This is critical functionality !

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Feb 24, 2004 11:56 am

Hello,

Thanks for the bug report, the change that slipped in to break this functionality in the latest build will be corrected. Apologies for the inconvenience.

As a workaround you can set the following before populating the Series:

Code: Select all

Planned.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.None

Regards,
Marc Meumann
Steema Support

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Feb 24, 2004 12:20 pm

Small correction:

better (for consistency)

Code: Select all

Planned.StartValues.Order = Steema.TeeChart.Styles.ValueListOrder.None
than

Code: Select all

Planned.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.None
Regards,
Marc Meumann
Steema Support

Exact Software
Newbie
Newbie
Posts: 7
Joined: Fri Nov 15, 2002 12:00 am
Location: Delft - the Netherlands
Contact:

Post by Exact Software » Tue Feb 24, 2004 12:28 pm

Thanks a lot marc ! Your workaround does the job and my gantt chart looks nice again.

Do you have any idea when this bug will be solved ?

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

Post by Pep » Tue Feb 24, 2004 1:09 pm

Hi,

Build 1.1.1499.42325 was released on 9/Feb/2004, meaning that the next maintenance release should be available in May/June.

Post Reply