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
165
Composite chart : stacked column + line chart
posted

Hello,

I create a BarColumnLine chart well but i want a stacked column + Line :( so i try to use composite chart.

Now, i create my first composite chart (stacked column + line chart) with the wizard designer. I  fill the data source with the code behind :

ultraChart.Data.DataSource = table;
ultraChart.Data.DataBind();

but it fill only the stacked column chart not the line chart. How i specify the datasource link to the stacked chart and the line chart ?  

Do you know if is it possible to create composite chart with wizard and fill different data source charts by the code behind ? If yes, how please?

Thank you.

Parents
  • 18204
    Verified Answer
    Offline posted

    Hi jc,

    Thank you for posting in our forums!

    You will need to set the DataSource for each series.  You can see an example of this below:


    NumericSeries ns = (NumericSeries)UltraChart1.CompositeChart.ChartComponent.Series.FromKey("seriesA");
    ns.Data.DataSource = GetData();

    If you need further assistance with this, please let me know and I will be glad to help.

Reply Children