+ Start a Discussion
MellowRenMellowRen 

Visualforce Charts in Columns i.e. Side by Side

Hi

 

I am hopefully missing something basic here. I have a number of Visualforce generated charts that I would like to display on a single page as a sort of Dashboard. I would like them to be in columns, preferably like this:

 

   [ Chart 1 ]  [ Chart 2 ]  [ Chart 3 ]

   [ Chart 4 ]  [ Chart 5 ]  [ Chart 6 ] 

 

Yes, much the same way that you can build a Dashboard using the Dashboards. [Side Question: Can you put a Visualforce Page, i.e. a chart, inside a Dashboard? I couldn't see a way.]

 

Can this be done?

 

Regards

MellowRen

Best Answer chosen by Admin (Salesforce Developers) 
Peter_sfdcPeter_sfdc

The standard Visualforce component apex:panelGrid allows you to easily build an HTML table which would allow you to arrange your charts. 

 

The documentation on apex:panelGrid is here: 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_panelGrid.htm

 

Worst case, if you can't get that to work, if you have HTML experience, Visualforce will pass through raw HTML tags. 

All Answers

Peter_sfdcPeter_sfdc

The standard Visualforce component apex:panelGrid allows you to easily build an HTML table which would allow you to arrange your charts. 

 

The documentation on apex:panelGrid is here: 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_panelGrid.htm

 

Worst case, if you can't get that to work, if you have HTML experience, Visualforce will pass through raw HTML tags. 

This was selected as the best answer
MellowRenMellowRen

Yes, works like a charm. Knew I had to be missing something.

 

Thanks Peter_sfdc.