Display label inside Stacked bar chart

2019-07-20 06:07发布

I'm trying to display the customized label inside the bar chart. No idea on how to do this.. Please help me. Label should be displayed inside each bar

标签: flot
1条回答
手持菜刀,她持情操
2楼-- · 2019-07-20 06:35

You just specify this in Series config... It's working fine for me:

  label: {
      display: 'outsideEnd',
        field: 'data1',  // field name
        orientation: 'horizontal',  //  or 'vertical'

         color: '#0000FF',
        'text-anchor': 'middle'
    },
查看更多
登录 后发表回答