删除标题时禁用Highcharts下载菜单

Highcharts download menu disabled when removing title

本文关键字:Highcharts 下载 菜单 标题 删除      更新时间:2023-09-26

每当我将图表的标题设置为null时,我就不能再点击图表的下载菜单了。

以下是一个示例:http://jsfiddle.net/JVNjs/954/

var chart = new Highcharts.Chart({
    chart: {
        renderTo:'container',
        borderWidth:1,
        plotBorderWidth:1
    },
    title:{
        text:null
    },
    subTitle:{
        text:null
    },
    credits:{enabled:false},
    legend:{
    },
    plotOptions: {
        series: {
            shadow:false,
            borderWidth:0,
        }
    },
    xAxis:{
        lineColor:'#999',
        lineWidth:1,
        tickColor:'#666',
        tickLength:3,
        title:{
            text:'X Axis Title'
        }
    },
    yAxis:{
        lineColor:'#999',
        lineWidth:1,
        tickColor:'#666',
        tickWidth:1,
        tickLength:3,
        gridLineColor:'#ddd',
        title:{
            text:'Y Axis Title',
            rotation:0,
            margin:50,
        }
    },    
    series: [{
        data: [7,12,16,32,60]
    }]

有什么想法吗?

问题仅由jsfiddle text overlap引起。如果您运行完整的展示,如下所示:http://jsfiddle.net/JVNjs/954/show/然后一切正常。