[SalesForce] How to Add a Funnel chart in Visualforce page

I am creating a Visualforce page and I have to add a funnel chart on the page. I am trying to add a similar chart like in dashboard. Tried for google chart but funnel chart is not available in google chart.

Best Answer

You can use the <analytics:reportChart> component.

First, create or customize a report to contain a funnel chart on it. For example:

report in report builder

Then take the id of the report, which can be found in the URL, and set the reportId field of the <analytics:reportChart> element.

<apex:page >
  <analytics:reportChart reportId="00Oi0000005d5bW"/>
</apex:page>

It will result in a page that has the chart on it. Make sure that your report is in a public folder. report in a Visualforce page

Related Topic