Fixed Bar width


« 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.

Thanks,
Vrushali
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:

[null,null,4,5,2,null,null]


Richard, RGraph Support

5 developer license with Priority support for £299:
   www.rgraph.net/license#five-developer

Add a reply

 




« Back to message list
RGraph on social media