2017-07-31 80 views
-1

如何在Highcharts中为每个酒吧显示标签,如下图所示?在高图中显示每个酒吧的标签

enter image description here

+0

你的意思是已分组x轴标签? – Strikers

+0

添加一些你已经完成的代码。开始示例可能是https://www.highcharts.com/demo/column-basic。这不是代码编写服务检查[mcve](https://stackoverflow.com/help/mcve) –

+0

它看起来应该能够使用分组类插件来制作图表:https://www.highcharts。 COM /插件,注册表/单/ 11 /分组,分类 –

回答

1

我认为你正在寻找解决的办法是像this一些事情。

这可以通过使用数据标签并将它们正确放置在您想要的位置来实现。

plotOptions: { 
     column: { 
     dataLabels: { 
      enabled: true, 
      y: 0, 
      verticalAlign: 'bottom', 
      inside: true, 
      color: 'white', 
      formatter: function(e) { 
      return this.series.name 
      } 
     } 
     } 
    },