I plot data with jqPlot using logAxisRenderer to have two logarithmic axes.
Everything is fine except of two problems:
jqPlot creates a lot of empty space between 0 and 1.
There are two zeros on the x-axis, since I format the numbers to "%'i" (one for 0.0 and one for 0.5).
I tried to use min:1 and max:100000 in order to hide the empty space and the zeros. But this didn't work. The resulting plot has no line and all x-axis labels are on the same spot on the left side of the axis.
Here is the code I use to create this plot:
$.jqplot(divId, [ line ], {
title : title,
series:[{showMarker:false}],
axes : {
xaxis : {
label:'Users',
renderer : $.jqplot.LogAxisRenderer,
tickOptions:{
tickDistribution: "power",
formatString: "%'i"
},
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
},
yaxis : {
label:'Frequency',
renderer : $.jqplot.LogAxisRenderer,
tickOptions:{
tickDistribution:"power",
formatString: "%'i"
},
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
},
},
});