读书人

当纵坐标值全为0FusionChart 显示 N

发布时间: 2012-12-21 12:03:50 作者: rapoo

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

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.

读书人网 >编程

热点推荐