CodePudding user response:
Ve - pie chart click eventCodePudding user response:
: events="chartEvents"Let the self=this
Enclosing chartEvents={
Click: function (item) {
The self. The name=item. The name
. The console. The log (item name)
}
}
ChartSettings: {
DataType: 'percent,
LegendLimit: 1,
The radius: 150,
SelectedMode: 'single',
HoverAnimation: false
},
"Click" add event listeners