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 year. The won/lost information is displayed as a stacked bar chart. The chart also displays a line series chart where each point on the line series is the number of opportunities that were won/lost in that month. As the number of opportunities will...