Receiving data from remote api and show in the form of histogram