Fixed download issues.

All graphics download, font looks right, y,x, and legend labels are there in downloads. 
Looks like chart.font/size are set after they're used for the first time. It's set on this line (246), but there are calls to `chart.font` and `chart.font_size` on line 77.

People forking this will expect config like this to be higher up, I think. Though this might also be the result of bundling. If it is, ignore this. If not, please move the setting of the var before the getting.