chart control code add