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
55
UltraChart - Bar Chart - Design Issue
posted

Hello

I've a requirement in the Bar Chart where i can change the labels for the bars displayed in the chart within the same chart. Please check the attached image for understanding it clearly.

Any insights on this?

 

  • 17605
    posted

    You can try using:

    NumericSeries series1 = new NumericSeries();

    series1.Label = "X1";

     

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

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

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

     

    NumericSeries series2 = new NumericSeries();

    series2.Label = "X2";

     

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

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

    series2.Points.Add(new NumericDataPoint(3, "F", false));

     

    this.UltraChart1.Series.Add(series1);

    this.UltraChart1.Series.Add(series2);

     

    this.UltraChart1.Data.ZeroAligned = true;