Fusionchart 柱状折线数据是百分比数据时

今天遇到一个问题,有几个页面的图表,数据传递过来的是百分比的,比如 9.60%  25.05%.

解决办法是js中xml形式组装数据时,将百分号substring(0,colData.length-1);

然后<chart numberSuffix="%" decimals="2" >......,<set数据...此处略> </chart>

第一个参数是让数字之后有百分号.

第二个参数是官网上查的.

  if you had data as 0.12352, 0.134 and 0.13, and you set decimals as 3, FusionCharts XT will output 0.124, 0.134 and 0.13

 

if you want your numbers on the chart to have trailing zeroes too, you can set <chart ... forceDecimals='1' > and now the numbers will show as 0.124, 0.134 and 0.130 respectively. 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值