如何更改 Highcharts 中饼图的图例形状?

问题描述

我是 High 图表的新手。想知道如何在 High 图表中为不同的饼图部分设置不同的图例符号。

预期行为:

enter image description here

我的图表选项是:

// 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'
            }
        }
    ]
});

Fiddle link

从小提琴链接你可以看到我得到了所有三个切片的圆形图例,但是我想为此使用不同的符号。所以请在这方面帮助我。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)