Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
How to plot chart in middle data in Datagriview?

I tried this code below , from this table[^] , it plot nicely like this [^] , but but when this data increase[^] , I do not want this kind of chart [^] .....

VB
Chart1.Series(0).Points.Clear()
Chart1.Series(0).BorderWidth = 5

Chart1.Series(0).Points.AddXY(DataGridView1.Rows(0).Cells(1).Value, DataGridView1.Rows(0).Cells(1).Value)

Chart1.Series(0).Points.AddXY(DataGridView1.Rows(1).Cells(1).Value, DataGridView1.Rows(1).Cells(1).Value)

Chart1.Series(0).Points.AddXY(DataGridView1.Rows(2).Cells(1).Value, DataGridView1.Rows(2).Cells(1).Value)



Thanks !
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900