Extracted most of the variable settings into a default but overridable config object.
First prototypes for pie and stacked charts.