您的位置:首页 > 其它

【FusionChart 】当纵坐标值全为0,FusionChart 显示 NaN 的解决方法

2012-09-06 13:39 453 查看
FusionCharts的使用
 
  1、当纵坐标值全为0,FusionChart 显示 NaN 的解决方法
 <graph caption='chart1' yAxisMinValue='0' yAxisMaxValue='10' >
 
加上属性  yAxisMinValue='0' yAxisMaxValue='10' , 第二个属性yAxisMaxValue非0正整数即可
 
如果实际数据大于10,则根据实际数据来计算确定y轴的最大值 
 
下面说明摘自官方的文档,但是官放说明是不完整的,少了如果指定 yAxisMinValue='0' yAxisMaxValue='10' 。并且有数据的情况。
 
文档参考:
Chart Numerical Limits
yAxisMinValue="value": This attribute determines the lower limit of y-axis.
yAxisMaxValue="value" : This attribute determines the upper limit of y-axis.

If you don't specify any of the above values, it is automatically calculated by FusionCharts based on the data provided by you.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  文档 graph