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
603
Configuring the Y axis labels/range
posted

How do I...

1. Set the mininum range for the Y axis to zero and the maximum range to whatever is the largest value in the datatable?

    The code below can result to a non-zero as the min. range because it tries to start on the lowest value found in the datatable, but it will correctly  set the maximum range to the largest value.

                Chart1.Axis.Y.RangeType = Infragistics.UltraChart.Shared.Styles.AxisRangeType.Automatic

    The code below on the other hand will allow me to specify the min range to be zero, but doesn't provide me the flexibility of autmatically assigning whatever is the largest value in the datatable.

                Chart1.Axis.Y.RangeMin = 0
                Chart1.Axis.Y.RangeMax = *

2. Assign formatting to X/Y labels?

    The labels are showing as 00, 05, 10, 15, 20...   and I want to show them as 0, 5, 10, 15...