Adding a third axis

Plotting multiple series on a single graph can be problematic if the values of the two series vary widely. For example, if the total value of won opportunities were plotted against the record count of won opportunities, the total value number would likely be several hundred thousand times the record count number. Plotting these on a single chart would result in the record count plot being so close to zero as to be indistinguishable from it.

The solution to this problem is to display the third axis. The axis is scaled appropriately to the data set that is plotted against it.

In this recipe, we will create a Visualforce page containing a chart that displays the total value of the won and lost opportunities per month for the last ...

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.