code for animating histograms from geojson data