The ms chart control is quite fussy. If I use this code in a loop where the data is created :
*
It returns this, which is great.
Attachment 99177
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 :
Attachment 99179
Whhhhhhhhyyyyyyyy! (The same data was used)
Any ideas on how to get it looking like the first example, using data from a datatable?
Code:
Form1.Chart1.Series(count).Points.AddXY(x, y)It returns this, which is great.
Attachment 99177
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:
Code:
For Each row As DataRow In ARpassover_table.Rows
Chart1.Series(count).Points.AddXY(row.Item(0), row.Item(1))
Next rowAttachment 99179
Whhhhhhhhyyyyyyyy! (The same data was used)
Any ideas on how to get it looking like the first example, using data from a datatable?