Improve renderChart