开发者

Same order as datatable on X axis in Ms chart?

开发者 https://www.devze.com 2023-02-02 09:27 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消