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
415
ZeroAligned and Y Axis range on Composite Charts
posted

I have a composite (column/scatter) chart that has two problems:

1. I can't get the Y axis to be ZeroAligned: chart.Data.ZeroAligned = true; has no effect.

2. The range seems to adhere to the scatter charts values ONLY and cause the column chart values (which have the larger range to be cut off (axisY.TickmarkStyle = AxisTickStyle.Smart;)

How do I fix these?

  • 26458
    Offline posted

    This appears to be a bug. You can work around it by setting RangeMin/RangeMax on the y axis to a range that contains both the scatter and the column data. Can you please report this issue to the developer support group?

    http://es.infragistics.com/support/submitrequest.aspx

    Here's an example of a workaround:

    AxisItem yAxis = ultraChart1.CompositeChart.ChartAreas[0].Axes[1];
    yAxis.RangeMin = 0;
    yAxis.RangeMax = 100; //you would have to calculate the upper bound based on your data
    yAxis.RangeType = AxisRangeType.Custom;