Page 1 of 1

Labels in Gantt chart disappear in new build

Posted: Thu Feb 12, 2004 3:42 pm
by 6924132
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 !

Posted: Fri Feb 13, 2004 10:10 am
by Pep
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 ?

Posted: Fri Feb 13, 2004 2:40 pm
by 6924132
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.

Posted: Tue Feb 24, 2004 9:07 am
by 6924132
Can anybody please look into this problem, or tell me what more information you need ?

This is critical functionality !

Posted: Tue Feb 24, 2004 11:56 am
by Marc
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

Posted: Tue Feb 24, 2004 12:20 pm
by Marc
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

Posted: Tue Feb 24, 2004 12:28 pm
by 6924132
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 ?

Posted: Tue Feb 24, 2004 1:09 pm
by Pep
Hi,

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