IcCube报告,如何格式化amCharts泡泡轴?

时间:2015-11-25 11:25:11

标签: amcharts iccube iccube-reporting

我们来看一个简单的MDX:

 with 
 member Axis1 as '0.1', format_string='Percent'
 member Axis2 as '0.2', format_string='Percent'
 member value1 as '2532'
 select {Axis1, Axis2, value1} on 0,
 [Periode].[Periode].[All-M].&[2015] on 1
 from [Cube]

返回值:

enter image description here

使用此方法创建一个amCharts Bubble小部件,提供以下内容: enter image description here

问:我如何设置Axis值(0.190 0.195 0.200等等......),就像气球中显示的那样? (19.00%19.50%20.00%等等......)

1 个答案:

答案 0 :(得分:2)

目前,只能在图表配置中使用额外选项。要在XY图表上获得百分比标签,您应该将此构造放入(窗口小部件 - >编辑 - >>窗口小部件 - >高级属性 - >额外选项):

:{
    valueAxes: [
        { "labelFunction": function(value) { return (value * 100) + "%"; } },
        { "labelFunction": function(value) { return (value * 100) + "%"; } }
    ]
}