Chapter 6. Visualforce Charts

In this chapter, we will cover the following recipes:

  • Creating a bar chart
  • Creating a line chart
  • Customizing a chart
  • Adding multiple series
  • Creating a stacked bar chart
  • Adding a third axis
  • Embedding a chart in a record view page
  • Multiple charts per page

Introduction

Visualforce charting allows custom charts to be embedded into any Visualforce page using standard components; only server-side code is required. A key difference from the standard charting functionality available in reports and dashboards is that the data is provided by the Visualforce page controller and can be derived from any number of sObjects, regardless of whether any relationships between the sObjects exist.

Note

Visualforce charts became generally available ...

Get Visualforce Development Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.