首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2012-12-21 
当纵坐标值全为0,FusionChart 显示 NaN 的解决方法FusionCharts的使用???1、当纵坐标值全为0,FusionChart

当纵坐标值全为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.

热点排行