Highcharts如何从工具提示中删除标题

时间:2015-11-11 09:47:45

标签: highcharts

enter image description here

如何删除Kosten以上的0? 我想我应该在系列中添加一些内容来隐藏它。

My highcharts script

有什么建议吗?

1 个答案:

答案 0 :(得分:14)

您必须查看工具提示选项: http://api.highcharts.com/highcharts#tooltip

我添加了以下代码,删除了kosten

以上的数字
tooltip:{
         headerFormat: '',
},

它基本上用空字符串替换工具提示中x轴(0,1,2等)的值,因此它不会出现。

工作示例:http://jsfiddle.net/4pp1zhfb/5/