Uses the D3js library to output a histogram from the given data.