dispose for line chart