Axis Ranging - AutoRange
At the outset, the VisibleRange is adjusted to be equal to the DataRange of an axis. However, an axis won’t adjust its
VisibleRange automatically when data changes, unless it is configured to do this. The default behavior can be changed by applying different
SCIAutoRange modes on
NOTE! Setting an explicit
ISCIAxisCore.visibleRangeon the axis will override this behaviour.
This is the default setting. The axis will attempt to autorange once to fit the data as you start the chart. This is a one-time action - the
ISCIAxisCore.visibleRange won’t adjust to any data changes in future.
In this mode, the axis will attempt to autorange always to fit the data every time the chart is drawn. The
VisibleRange will adjust to data changes correspondingly.
NOTE! Please be aware that this setting will override any other ranging, including zooming and panning by modifiers, but is useful in situations where you always want to view the extents of the data.
The axis will never autorange. With this option, you would need to set the
ISCIAxisCore.visibleRange manually. The
VisibleRange won’t adjust to any data changes.
The AutoRange behavior can be completely overridden if necessary. The
ISCIViewportManager provides the full access to and control over axis ranges and viewport. The default implementation of
ISCIViewportManager is the
SCIDefaultViewportManager class. Custom ViewportManagers can be assigned via