bar chart is now cleared when importing data