Optimization chart function

Optimization chart function