dynamic chart adding feature