basic chart functionality working