How to fix hidden dataLabel in highcharts?

后端 未结 1 1726
借酒劲吻你
借酒劲吻你 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)
提交回复
热议问题