added basic chart functionality