changes to initChart