I am trying to use Visualforce charting(bar chart) and my problem is I want control the length of the bar.

Wondering how to increase the visual length of bar. Any suggestions please..!!!

enter image description here

  • When you say length of bar, do you mean how far out the bar comes in the chart? If so, you need to reduce the values on the lower axis as your bars are short because they are just around 10. Commented Jan 10, 2014 at 8:41
  • Thanks for the reply. Lower axis dynamically calculating and rendering.. wondering how to get the control on length of bar..
    – Arun SFDC
    Commented Jan 10, 2014 at 9:20
  • 1
    The length of the bar is correct though - if you made it longer then it wouldn't reflect the actual value would it? Commented Jan 10, 2014 at 9:27

2 Answers 2


I added maximum and minimum value in .

That solved my problem!

enter image description here

  • Arun -- you should mark this as answered and post the snippet of VF code into your answer to hep others
    – cropredy
    Commented Dec 18, 2014 at 17:45

Use width attribute followed by integer and percentage

<apex:chart name="MyChart" height="300" width="450" data="{!data}"..
  • An example of this ? Commented Jan 10, 2014 at 8:10
  • <apex:chart name="MyChart" height="300" width="450" data="{!data}".I'm not sure.This is an idea
    – Sindoora
    Commented Jan 10, 2014 at 9:50
  • Editing that into your answer above directly will surely improve the quality and help to other users. Commented Jan 10, 2014 at 9:57
  • Sure i'will make a note.
    – Sindoora
    Commented Jan 10, 2014 at 10:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .