I have a graph which values on Y axis can quite vary. The only information I have is:
Now if I have just few values with very low volatility like (lets take the extreme) [0,0,0,0,0,0,0]
I got on my Y axis repetitive values. It looks like:
|
1+
|
1+
|
1+
|
0+
|
0+
|
0+-----------------------------------------
What I would like to achieve is to make jqPlot skip the repetitive values, possibly display only 2 ticks - 0,1 on the Y axis (the very bottom and very top one).
Any ideas? Adding my code for reference:
yaxis:{
label:'Count',
padMin: 0,
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
tickOptions:{
formatString:'%d'
}
}
its a bug with the plugin, I can reproduce it on their demo code and I have the same problem myself.
for now set the chart to a smaller dimension as that's the current flaw with the plugin.
hope this helped.