0

当鼠标悬停在图例上时,它会抛出错误“未捕获的 TypeError:无法构造 'MouseEvent':成员 sourceCapabilities 不是 InputDeviceCapabilities 类型。在https://salesforce.lightning.force.com/auraFW/javascript/7p9HLMpgnV2GO9MqZhXGUw抛出/aura_prod.js:37:97048"

代码 :

` Highcharts.chart(container, { chart: { type: 'pie', //backgroundColor: '#c9dbeb', options3d: { enabled: true, alpha: 45, beta: 0 } }, title: { text: 'Pie图表',样式:{颜色:'黑色',fontWeight:'bold',fontSize:'30px',fontFamily:'calibri'}},学分:{启用:false},导出:{启用:false},工具提示: { pointFormat: '{series.name}: {point.percentage:.1f}% ' },可访问性:{ point: { valueSuffix: '%' } },plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer ', depth : 35, //size: 300, dataLabels: { style: { width: '90px' },

                        enabled: true,
                        distance: -60,
                        borderRadius: 5,
                        backgroundColor: 'black',
                        borderWidth: 2,
                        borderColor: '#AAA',
                        alignTo: 'toPlotEdges',
                        format: '<b>{point.name}</b><br>   {point.percentage:.0f} %'
                    },
                    showInLegend: true,
                    states: {
                        hover: {
                            enabled: false
                        }
                    }
                }
            },
            legend: {
                enabled: true,
                align: 'right',
                layout: 'vertical',
                verticalAlign: 'middle',
                symbolRadius: 0
            },
            series: [{
                type: 'pie',
                colorByPoint: true,
                data: [{
        name: 'Chrome',
        y: 61.41,
        sliced: true,
        selected: true
    }, {
        name: 'Internet Explorer',
        y: 11.84
    }, {
        name: 'Firefox',
        y: 10.85
    }, {
        name: 'Edge',
        y: 4.67
    }, {
        name: 'Safari',
        y: 4.18
    }, {
        name: 'Other',
        y: 7.05
    }]
            }],
        },

    );

`

4

0 回答 0