some minor changes to chart, mostly concerning positioning of chart in canvas