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
220
ColumnChart - Columns by equal value are not rendered
posted

Hi everyone! It seems that if I create a ColumnChart, each column with the same height value, the chart is not rendered (except the axes).

Here is a code that reproduce this issue.

private void Form1_Load(object sender, EventArgs e)

 {

 this.ultraChart1.Series.Clear();

this.ultraChart1.Data.ZeroAligned = true;

NumericSeries ns = new NumericSeries();

ns.Points.Add(new NumericDataPoint(20, "1", false));

ns.Points.Add(new NumericDataPoint(20, "2", false));

ns.Points.Add(new NumericDataPoint(20, "3", false));

ns.Points.Add(new NumericDataPoint(20, "4", false));

this.ultraChart1.Series.Add(ns);

}

P.S. I am using the 7.3 version with the latest hot-fix installed.

Thanks!

Parents
  • 26458
    Verified Answer
    Offline posted

    Hi,

    This is a bug that has been reported and is being worked on.
    Here's a link to the original post with a possible workaround:
    http://forums.infragistics.com/forums/t/3758.aspx

    Alternatively, you can set range type to Custom on Y axis and specify rangemin and rangemax. If you don't know rangemax ahead of time, you can try using FillSceneGraph event and do something like this:

    private void ultraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)
    {
       IAdvanceAxis y = e.Grid["Y"] as IAdvanceAxis;
       if (y != null)
       {
          this.ultraChart1.Axis.Y.RangeMin = 0;
          this.ultraChart1.Axis.Y.RangeMax = (double)y.Maximum;
          this.ultraChart1.Axis.Y.RangeType = AxisRangeType.Custom;
       }
    }

Reply Children
No Data