use histogram instead of graph to load data