Final version before removing Javascript.  Revert to this if errors
occur with line chart