implment chart feature