chart business logic