Edit chart functionality