implementing chart based on usage