Added fix for stacked bar placement.

This will add the y value for each bar segment to a running total.  The way it was before it would place the label where it would be if the bars weren't stacked.

I threw in the ability to add x and y offsets for html rendering.