Component
Graphic syntax elements - components.
Inherit Mark
. All APIs supported by Mark
can be called on the Component
instance.
Instance properties
componentType
Type: string
The component type.
Instance methods
configureComponent
Configuring components.
scale
Set the scale of the component. Currently, three types of components can be set with scale
:
Axis
Crosshair
Legend
axisType(string)
Set the axis type of the Axis
component.
tickCount
Set the number of ticks of the Axis
component.
legendType(string)
Set the legend type of the Legend
component.
target
Set the target data of the component.
setSelected
Set the selected value of the Legend
component.
crosshairType(string)
Set the type of the Crosshair
component.
crosshairShape(string)
Set the shape of the Crosshair
component.
min
Set the minimum value of the Slider
component.
max
Set the maximum value of the Slider
component.
setStartEndValue
Set the start value and end value of the Slider
component.
preview
Set the preview value of the Datazoom
component.
labelStyle
Set the label style of the Label
component.
size
Set the size of the Label
component.
playerType(string)
Set the player type of the Player
component.
play
Play the Player
component.
pause
Pause the Player
component.
backward
Component Player
rewind.
forward
Component Player
forward.
title
Set the title of the Tooltip
component.
content
Set the content of the Tooltip
component.