Chart functionality completed