added JSON for histogram
added histogram