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
Hello Petar,
That's what I had figured out by now, though it is not exactely what I want.
Thanks for your help,
Hello Damien,
This is the designed behavior for that particular scenario. What you can do to achieve your goal is simulate some empty datapoints so that there is no difference in numbers in the different Series. If your data is ZeroAligned you can set their values to 0 and if not you can provide some simple logic to have it set to the smallest value in the collections.
Here is a link from another forum thread showing a similar approach used for a column chart: http://community.infragistics.com/forums/p/38268/220561.aspx#220561
Hope this helps.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support