Ah. I'm not super familiar with creating histograms with Neo4j data, but let's see what we can do.
We mostly need to create a query that pulls all the properties on User nodes and looks at all the values of those. That's what the query below handles. It pulls the properties for User nodes in our database and flattens all the values into a list based on the property.
WITH apoc.coll.toSet(apoc.coll.flatten(collect(keys(n)))) AS allKeys
UNWIND allKeys AS key
WITH COLLECT(n[key]) AS values, key
RETURN key, apoc.coll.frequenciesAsMap(values) AS freq
Then, if you're doing it in python, you can dump those results to a dataframe and use the
DataFrame.hist function which will iterate over each key and give a histogram for each. Otherwise, tools like matplotlib or other chart visualizations could work, too. Hope this helps!