在堆叠的条形图中显示标签 [英] Display label inside Stacked bar chart

查看:101
本文介绍了在堆叠的条形图中显示标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在条形图中显示自定义标签.不知道如何执行此操作..请帮助我.标签应显示在每个栏中

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

推荐答案

您只需在Series config中指定此设置即可.

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'
    },

这篇关于在堆叠的条形图中显示标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆