Stacked area graph implemented in canvas