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.