Implemented refresh of chart on legend item deletion