Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Highcharts highchart:在柱状图上添加系列名称_Highcharts - Fatal编程技术网

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;
            }