Clean up ChartPanel and move common stuff to ChartPanelCommon