Added a paramater to the histogram api and modified the full data api to return a flat array