chart redrawing optimized