jqPlot bar chart width

Nate Pet picture Nate Pet · Oct 19, 2011 · Viewed 9.9k times · Source

I currently have a bar chart in jquery. If the results show only 1 bar the issues is that the bar fills the space of the whole graph. How can I adjust the width of the bar so that it doesn't look like a log.

Answer

MandoMando picture MandoMando · Jan 18, 2012

try setting the barWidth in the BarRenderer:

http://www.jqplot.com/docs/files/plugins/jqplot-barRenderer-js.html