Override redraw function so that the chart can change size and fill container.