Selection for Pie Chart
Last updated
Last updated
Name
Type
Default
Desc
startEvent
String
'tap'
This interaction is triggered by touch or touch gesture. Optional 'touchstart' or 'tap'.
animate
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:
animate: {
duration: 1000,
delay: 10,
easing: 'bounceOut'
}
offset
Number
1
The distance between the halo and the pie chart that appears after selection.
appendRadius
Number
8
The axial length of the halo that appears after selection.
style
Object
{ fillOpacity: 0.5 }
The style configuration for halo.
cancelable
Boolean
true
After the shape is selected, click again to allow unchecked. The default is true, indicating that it will be unchecked.
onStart
Function
null
The callback after the start event is triggered.
onEnd
Function
null
The callback after the event('touchend') is triggered.
defaultSelected
Object
null
If you want shape to be selected when chart inited, you can pass in the shape value to defaultSelected
, see demo.
If you need to use this property, please call the method after the chart.render()
.
onEnd
callbackurl: https://antv.alipay.com/zh-cn/f2/3.x/demo/interaction/selection-for-pie-chart.html