Sencha触摸图-如何在柱形图中添加标签/值 [英] Sencha Touch chart - How to add label/value in column chart

查看:76
本文介绍了Sencha触摸图-如何在柱形图中添加标签/值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的项目使用Sencha Touch图1.0.0.我想在柱形图中的每个条形上添加值.有可能吗?

I am using Sencha Touch charts 1.0.0 for my project. I would like to add values on each bar in the column chart. Is is possible to do ?

例如,查看图像:我想为每个条添加值.

For example, see the image: I would like to add the values for each bar.

任何帮助表示赞赏.

推荐答案

只需在您的系列配置中添加此

just add this in yoour series config

 label: {
                display: 'outside', 
                field: 'score',
                orientation: 'horizontal', // 'vertical'
                text-anchor': 'middle'
            }

这篇关于Sencha触摸图-如何在柱形图中添加标签/值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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