Fix double painting the chart

@fcduarte ptal