Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
947
Is there any example of using bindingList for UltraWinChart
posted

Hi,

I see that all examples use DataTable as the Data Source of Chart.

 First, is it possible to use BindingList, and assign it to the DataSource of Chart?

If possible, how can we specify both x and y axis of the Chart? I have a binding source, which has two columns (X and Y), and each row represents a distinct set of X and Y that should be plotted as one line graph.

 I have tried assiging my bindinglist to the data source of the chart, but everytime I did it, it only set the y axis, and x axis was not. (I don't even get what column from the binding list that the chart plotted as y axis)

 Many Thanks in Advance

 

Parents
No Data
Reply
  • 28496
    Offline posted

     Set the ChartType to ScatterChart and ScatterChart.ConnectWithLines = true.

    A line chart has either time or just strings on the x-axis, whereas a scatter chart has numeric x and y axes.

Children