Is it possible to achieve this kind of column chart ? Note that the District 1 users are different from District 2 users. Also the number of users in District 1 can differ in District 2. In my example District 1 has 3 users and District 2 has 2 users. I am using NetAdvantage for .NET 2007 Vol.3. My client needs this requirement ASAP.
Yes, unfortunately this adds an empty space, but if you don’t add this empty bar, the last bar of the first series won’t be shown.
I ran into another small problem. How do I get rid of the empty space on the chart?
series.Points.Add(new NumericDataPoint(0, "", true));
Above line seem to add a space (empty bar).
Thanks. You have given me the right solution.
Try using the following code:
NumericSeries series = new NumericSeries();
series.Label = "District 1";
series.Points.Add(new NumericDataPoint(65, "User A", false));
series.Points.Add(new NumericDataPoint(85, "User B", false));
series.Points.Add(new NumericDataPoint(75, "User C", false));
this.UltraChart1.Series.Add(series);
series = new NumericSeries();
series.Label = "District 2";
series.Points.Add(new NumericDataPoint(70, "User D", false));
series.Points.Add(new NumericDataPoint(50, "User E", false));
series.Points.Add(new NumericDataPoint(0, "", true)); // add an empty data point
this.UltraChart1.Data.ZeroAligned = true;