I am creating a dashboard but the filter criteria of report that I am using is changing every time. So I decided to create a dynamic dashboard using Visualforce page.

I tried to create a visualforce page using Google chart but a funnel chart and similar meter gauge was not present. Also the charts were not having same look and feel like our salesforce.

So, is their any way to create a dynamic dashboard. Where I can change my filter criteria according to the user selected value and get a refreshed dashboard with different chart and values.

3 Answers 3


Have you tried the Visualforce Charting components? There's no funnel chart, but there are lots of other good chart types. You feed these charts whatever data you want (from a SOQL query of your choosing) and voila. They work very well for our needs.



It sounds like a good way to do this would be to use Visualforce charting along with the Analytics API. The Analytics API allows you to run reports from Javascript and then process the results for display in a chart or some other manner.

The best bit is you can also update filters on the reports before requesting data, so using that you'll be able to make sure the data is correct for the person viewing the page. One word of warning there though (this cost me a few hours), you can't just submit the metadata for the updated filter. You first have to grab the metadata for the report (provided by a call in the API), change the part you care about, and then send it all back when you make the call to run the report.

You can find the online documentation for the API here.


If you are using classic VF pages, then you can:

  1. Use Remote Object

If you are also thinking migrating to Lightning then you can

  1. Use Rest API in Lightning Component

Once you got the restful data, use any 3rd party jstable and chart liberay to create your dynamic dashboard

You must log in to answer this question.

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