In following the steps given on the web site below, I am able to generate a chart, but only with the axis value I entered in the wizard, but I am wanting to use the values from a data source. I must be missing something very simple. I have added a data source, but values not there. Help please?
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Chart_Creating_a_Composite_Chart_Using_the_Chart_Wizard_Part_1_of_2.html
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Chart_Creating_a_Composite_Chart_Using_the_Chart_Wizard_Part_2_of_2.html
You can either get the series by index or by key. If your series collection has a series with key "series1" then useultraChart1.CompositeChart.Series.FromKey("series1") or ultraChart1.CompositeChart.Series[0]
The data table would have to be a table in your sqlDataSource, not a table name.
Hope this helps.
Here is some better information:
When you want me to get a reference to the series found in the chart.CompositeChart.Series collection...would that be found in the image1.gif sent earlier? The reference would therefore be 'series1' and 'series2'? Also 'yourDataTable' would be sqlDataSource? Or would that be the actual table name. I am working in Microsoft Visual Studio 2005 which has a data source to the view i am using. Thanks.
composite chart series cannot be bound to data through the wizard. You will have to do this through code.Get a reference to the series, which is found in the chart.CompositeChart.Series collection, then use something like this:
mySeries.Data.DataSource = yourDataTable;mySeries.Data.LabelColumn = "labelColumnName";mySeries.Data.ValueColumn = "valueColumnName";This will allow you to bind series to your data.