move svg resize to the chart base class