Adding support for stacked bar charts to display as a percentage of the total

This is a patch that allows stacks in a stacked bar chart to display as a percentage of the total, rather than absolute values.