Chart automatic resize
Cleanup