Implement selection mode and chart deletion