Search Results for

    Show / Hide Table of Contents

    Axis Ranging - VisibleRange and DataRange

    Every axis type can work with a specific range type that conforms to the IRange<T> protocol. It depends on the data type that 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:

    • DoubleRange - used on Numeric Axis types.
    • DateRange - used by Date Axis types.

    SciChart introduces the concepts of a VisibleRange and the DataRange of an axis, which are instances of the Range types listed above and other inheritors of IRange<T>.

    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 dataRange property.

    Data Range

    What is VisibleRange?

    setVisibleRange(IRange 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 setVisibleRange(IRange visibleRange) property.

    When VisibleRange == DataRange, we say the chart is zoomed to its data extents, or zoomed to fit. This can be illustrated in the image below.

    Visible Range

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

    See Also

    • Axis Types in SciChart
    • Axis Ranging - AutoRange
    • Axis Ranging - Get or Set VisibleRange
    • Axis Ranging - How to listen to VisibleRange Changes
    • Axis Ranging - Restricting VisibleRange
    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml