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
849
Bar chart using series with different number of points
posted

Hello,

I am trying to make a bar chart using NumericSeries. The problem is that I want a different number of points in my series and the chart only shows the number of bars equal to the minimum number of points in all my series.

Here is the code I use:

Normal 0 21 false false false MicrosoftInternetExplorer4

            NumericSeries series1 = new NumericSeries();

            series1.Label = "Category 1";

            series1.Points.Add(new NumericDataPoint(3, "Product A", false));

            series1.Points.Add(new NumericDataPoint(5, "Product B", false));

            

            NumericSeries series2 = new NumericSeries();

            series2.Label = "Category 2";

            series2.Points.Add(new NumericDataPoint(4, "Product C", false));

            series2.Points.Add(new NumericDataPoint(0, "Product D", false));

            series2.Points.Add(new NumericDataPoint(2, "Product E", false));

           

            this.ultraChart1.Series.Add(series1);

            this.ultraChart1.Series.Add(series2);

In this case, I don't see "Product E". Is it possible to achieve what I want? If yes, how?

Thanks for your help.

 

Damien

 

 

Parents
No Data
Reply Children