ScrollBar
Last updated
Last updated
ScrollBar is a plugin for pan and pinch interaction, it will show the current data range.
After register the ScrollBar, the method `chart.scrollBar()` can be called.
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 bar
fillerColor
: the color for range bar
size
: the size of scroll bar
lineCap
: determines how the end points in a line are drawn
offsetX
: the offset value of scroll bar in x-axis direction
offsetY
: 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 bar
fillerColor
: the color for range bar
size
: the size of scroll bar
lineCap
: determines how the end points in a line are drawn
offsetX
: the offset value of scroll bar in x-axis direction
offsetY
: the offset value of scroll bar in y-axis direction
xStyle
default value:
yStyle
default value:
Example: