Customizing a chart

Visualforce charts are highly customizable; colors, markers, line widths, highlighting, legends, labels, and more are under the control of the developer.

In this recipe, we will create a Visualforce page containing a bar chart displaying the total value of won opportunities per month for the last year.

The chart will be customized to display horizontal bars in a custom dark blue color that do not highlight when the user hovers over a bar. Finally, a legend will be displayed to show the user what the bars represent.

Getting ready

This recipe relies on the custom controller from the Creating a bar chart recipe in this chapter. If you have already completed that recipe, you can skip this section.

  1. Navigate to the Apex Classes setup ...

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.