Highcharts 如何从highchart标志中删除标题

Highcharts 如何从highchart标志中删除标题,highcharts,Highcharts,我需要从使用Highchart创建的图表中删除标志标题。你知道怎么做吗 如果未设置标题或设置为空,则默认情况下显示 type : 'flags', name: 'Notable Event', legend: 'Notable Event', title: { text: null, // OR if no title is set it displays A }, 尝试使用以下选项删除标题: plotOptions: { flags: { title: '' } }

我需要从使用Highchart创建的图表中删除标志标题。你知道怎么做吗

如果未设置标题或设置为空,则默认情况下显示

type : 'flags',
name: 'Notable Event',
legend: 'Notable Event',
title: {
    text: null, // OR if no title is set it displays A
},

尝试使用以下选项删除标题:

plotOptions: {
  flags: {
    title: ''
  }
}
查看此文档了解更多信息:


您还可以通过rgba设置透明颜色

{   
                type : 'flags',
                data : [{
                    x : Date.UTC(2015, 5, 8),
                    title : '',
                    style:{
                        color: 'rgba(0,0,0,0)'
                    }
                }]
}

示例:

非常好用,谢谢。在我的例子中,我使用标志图像作为
shape:'url(red_icon.png)