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
20
DataSet Line Charting
posted

I'm new to Infragistics. Is it possible to do Line Charting directly from an XML file that has a DataSet (.xsd) or must I use DataTables? All examples I have seen only use DataTables, is it possible straight from the DataSet.  I am trying to plot the following relationship were each ID can have multiple XY values for any number of IDs. For example...

ID       X_Value     Y_Value

0       3874.10        834.64

0       3762.15        834.28

0       3181.25        637.01

1         764              634.12   

1         764              629.15

1         764              524.15

1         721.5          475.51

 

Parents
No Data
Reply
  • 28496
    Suggested Answer
    Offline posted

    if you assign the chart's DataSource to a DataSet, it will just use theDataSet.Tables[0] to get the data.  or, if the DataMember is set to the name of a specific table in that DataSet, it will use that one.

    with your data, you probably want a ScatterChart with these settings:

    ScatterChart.ConnectWithLines = true

    ScatterChart.UseGroupByColumn = true

    ScatterChart.GroupByColumn = 0

    ScatterChart.ColumnX = 1

    ScatterChart.ColumnY = 2

Children
No Data