Sunday, August 28, 2016

HighCharts in Visualforce Page

We can use interactive charts provided by HighCharts in Visualforce page. Here I am going to display line chart using highCharts.

For example, we will display the count of opportunity group by stage.

Download  js files from below mentioned URL and store it in static resource:


Create VF page "HighChartDemo" and apex class "HighChartDemoController". Below is VF page and apex class code:

Chart Snapshot:

HighCharts gives option to download chart in PNG, JPEG, PDF and SVG vector image.