Leo*_*Leo 4 jquery charts jquery-plugins flot
我正在使用google flot chart,它根据用户选择的值显示图表.图表显示x轴上的年份和y轴上的价格.
问题是如果图形宽度很小,它会正确显示值.例如,如果我将宽度设置为
<div id="placeholder" style="width:500px;height:300px"></div>
Run Code Online (Sandbox Code Playgroud)
但如果图形宽度增加就像
<div id="placeholder" style="width:650px;height:300px"></div>
Run Code Online (Sandbox Code Playgroud)
图表显示x轴上不需要的零,例如
Insted of 2010 it shows 2010.0
Insted of 2011 it shows 2011.0
Insted of 2012 it shows 2012.0
Run Code Online (Sandbox Code Playgroud)
我只是想摆脱这些不必要的零.谷歌根本没有帮助我,我完全不知道这种愚蠢的行为.