Add Scrollbar to the X-Axis and Y-Axis

The following steps show how to add Scrollbars to the X and Y axis of the Chart

Using the Properties Window:

1.   In the C1Chart Properties window, expand ChartArea and expand the AxisX node.

2.   Expand the ScrollBar node and set its Visible property to True.

3.   Set the AxisX.Min property to 0 and Axis.Max property to 6 so the scrollbar appears within the minimum and maximum values.

The default AxisX scrollbar is aligned to the center of the Axis X and appears within the AxisX minimum and maximum values.

 

 

4.   In the C1Chart Properties window, expand the AxisY node.

5.   Expand the ScrollBar node and set its Visible property to True.

6.   Set the AxisY.Min property to 5 and AxisY.Max property to 25 so the scrollbar appears within the minimum and maximum values.

The default AxisY scrollbar is aligned to the center of the AxisY and appears within the AxisY minimum and maximum values.

 

 

Using Code:

Add the following code to add scrollbars to the X-axis and Y-axis of your chart:

      Visual Basic

      C#


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.