Added new chart functionality