Selection for Bar Chart
How to use
Configuration options
Name | Type | Default | Description |
| String | 'tap' | This interaction is triggered by touch or touch gesture. Optional 'touchstart' or 'tap'. |
| Object |
| Set the display style of the selected bar. |
| Object |
| Set the display style of the unselected bar. If you don't need to set it, you can set it to |
| Boolean | true | Whether to highlight the axis label, the default is |
| Object |
| Set the style for axis label which its bar is selected. Only works if |
| Boolean | true | After the shape is selected, click again to allow unchecked. The default is true, indicating that it will be unchecked. |
| Function | null | The callback after the start event is triggered. |
| Function | null | The callback after the end event is triggered. |
| String | 'shape' | The default is 'shape', that is, hitting the bar will trigger the interaction. Another optional value is 'range', which means that the selected interaction is triggered as long as the concentration point falls within a certain x-direction range of the bar. |
| Object | null | If you want shape to be selected when chart inited, you can pass in the shape value to If you need to use this property, please call the method after the |
onStart
callback
onStart
callbackonEnd
callback
onEnd
callbackDemo
https://antv.alipay.com/zh-cn/f2/3.x/demo/interaction/selection-for-bar-chart.html
Last updated