Made empty chart disappear when user cancels adding statistic