some memory management for charts
chart beutification