Hook in chart drawing

Adds an id to each chart box, and hooks in the javascript to fill in the
charts.