Highcharts highchart:在柱状图上添加系列名称
我需要在每一列上打印系列名称。现在,您只能将列的值打印为标签 有什么办法吗Highcharts highchart:在柱状图上添加系列名称,highcharts,Highcharts,我需要在每一列上打印系列名称。现在,您只能将列的值打印为标签 有什么办法吗 plotOptions: { series: { dataLabels: { align: 'left', enabled: true, rotation: 270, inside: true } }
plotOptions: {
series: {
dataLabels: {
align: 'left',
enabled: true,
rotation: 270,
inside: true
}
}
}
这可以通过。用于:
对于工具提示,我尝试了这个方法,但没有做任何更改:plotOptions:{series:{dataLabels:{align:'left',enabled:true,rotation:270,inside:true},formatter:function(){return this.series.name+'-'+this.y;},正在处理JSFIDLE示例。你期望的结果是什么?我在苹果分类数据标签上看到了“Jane-3”。请注意,您的工具提示被破坏了。错误
this.x.toLowerCase()
不是一个函数。请粘贴准确的代码或更新JSFIDLE并发送给我链接,好吗?
formatter: function () {
return this.series.name + ' - ' + this.y;
}