Optimized chart creation by a factor of about 3