Get histogram json data instead of png file