Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 Is there an override/workaround for this?

$
0
0
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.

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 row

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?
Attached Images
   

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>