Is there a way to fix the bar width on a Bar chart?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Vrushali on 24th June 2013
1. I have derawn stacked bar chart.I have fixed canvas width to 480px. It consists of any number of bars. If it consists more bars the width of each bar is less. If the number of bars decreases then the width of each bar increases. Is there any way to fix the width of the bar? h-margin is also not useful.

Posted by RGraph support on 24th June 2013
Hi there,

No - thw size of the bars will change as you increase or decrease the size of the canvas and the number of values. You can affect the size though by using the chart.gutter.left and chart.gutter.right settings or by padding your data with null values - eg:


Richard, RGraph Support

Add a reply

« Back to message list