4

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. – Bob Buzzard Jan 10 '14 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 Jan 10 '14 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? – Bob Buzzard Jan 10 '14 at 9:27
3

I added maximum and minimum value in .

That solved my problem!

enter image description here

| improve this answer | |
  • Arun -- you should mark this as answered and post the snippet of VF code into your answer to hep others – cropredy Dec 18 '14 at 17:45
2

Use width attribute followed by integer and percentage

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.