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
627
Composite ultraChart - more then one data values
posted

Hi,

I'm trying to create a composite column chart with line chart. The issue is that I'm getting a dataTable (for the column chart's data), which includes one label column and 3 data columns.

How can I do it from the code?

I mean - i know I need to do it for the series like:

seriesColumn.Data.LabelColumn = "Entity";

seriesColumn.Data.ValueColumn = "Availability";

But How do I add another Value columns to the series?

 Please advice

Thanks

Maya

intel

Parents
No Data
Reply
  • 26458
    Offline posted

    You should create a series for each numeric column in your data table.

    For example:
    columnSeries1.Data.LabelColumn = "Entity";
    columnSeries1.Data.ValueColumn = "NumericColumn1";
    columnSeries2.Data.LabelColumn = "Entity";
    columnSeries2.Data.ValueColumn = "NumericColumn2;
    columnSeries3.Data.LabelColumn = "Entity";
    columnSeries3.Data.ValueColumn = "NumericColumn3;
    columnLayer.Series.Add(columnSeries1);
    columnLayer.Series.Add(columnSeries2);
    columnLayer.Series.Add(columnSeries3);

Children