从图表中删除默认标题(高图)

问题描述 投票:0回答:1

我想删除在图表上显示鼠标时出现在Highchart上的标题。我已经尝试删除标题了,它仍然出现。

enter image description here

我尝试在图表的内部和外部使用Title,但没有任何反应。将文本=放入,它也不起作用。

示例:

{
    chart: {
        type: 'column',
        marginBottom: 40,
        title: {enabled: false},
    },    
    xAxis:{
        labels:{
            style:{
                color: 'black',
                fontSize:'11px'            
            }
        }
    }

谢谢

json highcharts label tooltip title
1个回答
0
投票

标题选项对象不应在图表选项内定义。

参见:https://jsfiddle.net/BlackLabel/ayjw6pom/

Highcharts.chart('container', {

    title: {
        text: ''
    },
    series: [{
        data: [29.9, 71.5, ...]
    }]
});

API:https://api.highcharts.com/highcharts/title.text

如果这无济于事,请在我可以使用的某些在线编辑器上重现您的问题。

© www.soinside.com 2019 - 2024. All rights reserved.