Chart functionality added