json histogram working