Highcharts系列名称标题未显示

时间:2017-10-16 07:43:52

标签: highcharts

我的图表还可以,我不知道系列名称消失了怎么回事!

也许highcharts上次更新需要其他选项,否则rtl会导致问题。

我的代码:fiddle

我在这里缺少什么?



$(function() {
    $(document).ready(function() {
        Highcharts.chart('user_info_46', {
            chart: {
                plotBorderWidth: null,
                plotShadow: false,
                type: 'pie',
            },
            title: {
                text: '',
                useHTML: Highcharts.hasBidiBug,
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: false
                    },
                    showInLegend: true
                }
            },
            legend: {
                useHTML: true,
                align: 'right',
                rtl: true,
            },
            tooltip: {
                useHTML: true,
                align: 'right',
            },
            credits: {
                enabled: false
            },
            series: [{
                name: 'تعداد',
                colorByPoint: true,
                data: [{
                    name: 'آقا',
                    y: 7,
                    color: 'cornsilk'
                }, {
                    name: 'خانم',
                    y: 2,
                    color: 'green'
                }]
            }]
        });
    });
});




0 个答案:

没有答案
相关问题