Adding new chart functionality