0

我正在使用 Sencha Touch 图表 1.0.0。从文档中,只有 type='Numeric',没有 'percentage' 类型。

如何将百分比添加到左轴?我尝试以百分比形式提供数据('20%',.. 等),但它没有用。

4

1 回答 1

1

在你的轴上添加这个,

{
 type: 'Numeric',
 fields: ['Data'],
  position: 'left',
label: {
         renderer: function(v) {
            return ((v * 100).toFixed(0)).concat('%');
                          }
                    }

 }
于 2012-03-07T12:52:43.960 回答