Home > Net > C # winfrom program Chart control problem.
C # winfrom program Chart control problem.
Time:11-21
I want to be a curve, click on the node of the curve shows that the X, Y data for it, but to chart1 binding data, click on the node Y can display the correct data, but the data is always 0 X, don't know why, who can give an explanation of the great god, Dt dataTable detected data from database tables, there are two column values, sendTime for time, value1 to dataThe bound data source Chart1. The DataSource=dt; Chart1. Series [0]. Points. DataBind (dt) DefaultView, "sendtime", "value1", ""); Chart1. DataBind ();
If, get data node y is normal, x is always zero.
CodePudding user response:
What is your X coordinate unit? I think if you bind sendtime format and chart support is not the same