Fixes for issue #777

- Data for histogram now now reduced based on resolution of graph