Changing the chart to render arrays