Optimizing chart.