The ms chart control is quite fussy. If I use this code in a loop where the data is created :
*Code:Form1.Chart1.Series(count).Points.AddXY(x, y)
It returns this, which is great.
However, I need the data to be in a datatable, and the chart to be created from the data in the table. Rather than using databind, because it gives terrible values for the axes, I tried this:
The aim was to create the same chart as above. Unfortunately the result was this :Code:For Each row As DataRow In ARpassover_table.Rows Chart1.Series(count).Points.AddXY(row.Item(0), row.Item(1)) Next row
Whhhhhhhhyyyyyyyy! (The same data was used)
Any ideas on how to get it looking like the first example, using data from a datatable?




Reply With Quote
