Selection for Pie Chart
How to use
Configuration options
Name | Type | Default | Desc |
| String | 'tap' | This interaction is triggered by touch or touch gesture. Optional 'touchstart' or 'tap'. |
| Boolean / Object | false | Animation configuration, defaults to false, which can be turned on by setting this property to true. Used for animation configuration when it is of type Object:
|
| Number | 1 | The distance between the halo and the pie chart that appears after selection. |
| Number | 8 | The axial length of the halo that appears after selection. |
| Object |
| The style configuration for halo. |
| 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 event('touchend') is triggered. |
| 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 |
onEnd
callback
onEnd
callbackDemo
url: https://antv.alipay.com/zh-cn/f2/3.x/demo/interaction/selection-for-pie-chart.html
Last updated