Javascript 所选饼图显示为在图表中弹出
我用的是海图的饼图。默认情况下,我希望选择一个饼图 要将其标记为选中的饼图,我已使用此设置更改了饼图的颜色Javascript 所选饼图显示为在图表中弹出,javascript,highcharts,Javascript,Highcharts,我用的是海图的饼图。默认情况下,我希望选择一个饼图 要将其标记为选中的饼图,我已使用此设置更改了饼图的颜色 plotOptions: { pie: { allowPointSelect: true, cursor: "pointer", dataLabels: { enabled: true, format: "<b&
plotOptions: {
pie: {
allowPointSelect: true,
cursor: "pointer",
dataLabels: {
enabled: true,
format: "<b>{point.name}</b>: {point.y}"
},
selected: true,
states: {
select: {
color: "grey",
enabled: true,
}
}
}
}
plotOptions:{
馅饼:{
allowPointSelect:true,
光标:“指针”,
数据标签:{
启用:对,
格式:“{point.name}:{point.y}”
},
选择:正确,
国家:{
选择:{
颜色:“灰色”,
启用:对,
}
}
}
}
Highchart弹出饼图(如果有人使用鼠标选择)
我可以更改颜色,但如何实现弹出效果?如果要在初始加载时选择一个点,需要在特定的点数据对象中进行设置 演示: API:
{
name: 'Chrome',
y: 61.41,
sliced: true,
selected: true
}