如何解决如何更改 Highcharts 中饼图的图例形状?
我是 High 图表的新手。想知道如何在 High 图表中为不同的饼图部分设置不同的图例符号。
预期行为:
我的图表选项是:
// Create the chart
Highcharts.chart('container',{
chart: {
type: 'pie'
},title: {
text: 'browser market shares. January,2018'
},subtitle: {
text: ''
},accessibility: {
announceNewData: {
enabled: true
},point: {
valueSuffix: '%'
}
},plotOptions: {
series: {
dataLabels: {
connectorWidth:0,distance:'1%',enabled: true,}
},pie: {
showInLegend:true
}
},tooltip: {
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
},series: [
{
name: "browsers",colorByPoint: true,data: [
{
name: "Chrome",y: 461,},{
name: "Opera",y: 4621,{
name: "Other",y: 197,}
],marker: {
symbol:'triangle'
}
}
]
});
从小提琴链接你可以看到我得到了所有三个切片的圆形图例,但是我想为此使用不同的符号。所以请在这方面帮助我。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。