SciChart Android 2D Charts API > Axis APIs > Axis Ranging - VisibleRange and DataRange
Axis Ranging - VisibleRange and DataRange

Every axis type can work with a specific range type that implements the IRange interface. It depends on the data type the axis can work with. Please review the article on axis types to learn more.

Range Types in SciChart

The most important Range types are:

SciChart introduces the concepts of a VisibleRange and the DataRange of an axis, which are instances of the Range types listed above.

What is DataRange?

DataRange is a property exposed by the axis, which tells you the range (Max, Min) of the DataSeries associated with that axis.

DataRange completely depends on the chart data and doesn't change without data changes. The DataRange can be accessed via the Axis.getDataRange method.

What is VisibleRange?

VisibleRange is an actual axis range, measured in chart units. This is a part of a chart that is currently visible in a viewport. So when DataRange completely depends on chart data and doesn't change without data changes, VisibleRange can be modified to provide a different viewpoint to a chart. The VisibleRange of an axis can be accessed by the Axis.getVisibleRange method.


The type of the Range depends on the type of the axis. For more infmrmation, see Axis Ranging - Setting and Getting VisibleRange.

See Also