Chart functionaluty completed