I am attempting to use data binding on a chart control. I have the strongly typed dataset set up (1 table two columns of doubles) and it is tied to a datagridview control, which shows that the data I think should be there is. I can also tie other controls
through data binding to the same source and they update as expected. Now to the chart control (datavisualizatioin). I've tied the dataset to the data source of the chart through a binding source. I've set the chart type of the series to Point (which I foolishly
believe means XY scatter). When I click on the Xvaluemember, it gives me a choice of the X or y from the data binding source or none. SO I pick the X. Now when I click on the Yvaluemember I don't get a choice of the Y or none but rather 0 or none(?!).
Nothing I can do will get it to display the other choice, which is available under Xvaluemember. SO step #1 would be to get it to offer the correct choice. Having picked 0 (for want of anything better to do). I run the program. At the appropriate point, I
populate the dataset, the right values show up in the datagrid and a series with the right number of data points show up in the chart. These points are labelled with the Xvalue BUT they are obviously placed at values of 1,2 3, etc.along the X axis not
at the data X value they have. Interestingly enough the y values are correctly graphed. SO it would appear that it is somehow getting the correct Y values, but treating the X values as labels not the x(co-ordinate) of an XY pair? How can I get the correct
behaviour? Now I can update values in the datagrid view and the simple controls that are tied to it update correctly; HOWEVER, I cannot get the chart to update it's values no matter what I do. I have run out of things to try to get this to work. Any help would
be greatly appreciated
↧