How to fix hidden dataLabel in highcharts?

后端 未结 1 1727
借酒劲吻你
借酒劲吻你 2021-01-22 06:28

Please take a look at JSFIDDLE. Here, the green bar doesn\'t display any value. I know adding overflow:\"none\", crop:false will display the value. But it goes out

1条回答
  •  温柔的废话
    2021-01-22 07:03

    For particular column (i.e green column) label value to be inside, you can add attribute inside: true in data .Refer dataLabels.inside for more info

     series: [{
        color: colors[0],
        showInLegend: false,
         data: [{
         ....//first value
         , {
          y: 3500,
          name: 'Second',
          color: colors[1],
          dataLabels: {
            inside: true //labels  will be inside column
          }
        },... // third and remaining
       });
    

    Fiddle demonstration

    0 讨论(0)
提交回复
热议问题