ScrollBar

ScrollBar is a plugin for pan and pinch interaction, it will show the current data range.
How to Register ScrollBar Plugin
After register the ScrollBar, the method `chart.scrollBar()` can be called.
Configuration
Name
Type
Default
Description
mode
String
'x'
The direction of the scroll bar, optional value includes 'x', 'y', 'xy'.
xStyle
Object
see below
The style for scroll bar in x direction:
backgroundColor
: the background color for scroll barfillerColor
: the color for range barsize
: the size of scroll barlineCap
: determines how the end points in a line are drawnoffsetX
: the offset value of scroll bar in x-axis directionoffsetY
: the offset value of scroll bar in y-axis direction
yStyle
Obect
see below
The style for scroll bar in y direction:
backgroundColor
: the background color for scroll barfillerColor
: the color for range barsize
: the size of scroll barlineCap
: determines how the end points in a line are drawnoffsetX
: the offset value of scroll bar in x-axis directionoffsetY
: the offset value of scroll bar in y-axis direction
xStyle
default value:
yStyle
default value:
Example:
Last updated