Data base send X-axis values 1,3,2,4,5 but when assigned to chart values are c开发者_StackOverflow社区oming 1,2,3,4,5. How can show same order as table has on x -axis?
Datatable
X Y
1 2000
3 1500
2 -500
4 -2000
Chart
X Y
1 2000
2 -500
3 1500
4 -2000
Do not use DataBindXY
, instead use DataBindY
so that the order of your data is maintained by your X axis.
精彩评论