I am utilizing jqPlot
to create a linear chart with a Y axis from 0% to 100%. The problem I am having is that one of the values falls on the X axis (is 0%) or 100% it is getting cut-off by the axis or the border of the chart.
How can I ensu开发者_如何学编程re this does not happen, while keeping the Y axis minimum at 0% and the max at 100%?
there is a pad
factor that can be set for axesDefaults
like this
axesDefaults: {
pad: 1.1,
}
or it can be set for individual axes like this
axes:{
xaxis:{
label: 'X-Axis Label',
pad: 2,
},
yaxis:{
label: 'Y-Asix Label',
pad: 1.1,
}
},
where the value is a factor multiplied by the data range on the axis to give the axis range so that data points don't fall on the edges of the axis.
as described here: http://www.jqplot.com/docs/files/jqPlotOptions-txt.html
精彩评论