O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How does Visualforce charting work

Visualforce charting relies on Apex, Visualforce, and JavaScript. When we create Visualforce charts, we need an Apex method to prepare or query data to use as the source of the chart. Then we need to define our chart by using Visualforce charting components. The chart data that is prepared in the Apex method is bound to the chart component and the JavaScript draws the chart in the browser.

A Visualforce chart needs a chart container that has at least one data series component. We have the ability to add additional series, chart axes, and labeling components (such as legend, chart labels, and tool tips for data points).

The following example creates a simple pie chart that contains the number of items that are delivered ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required