Histogram #2548
-
Historgram is very common tool to visualize distributions. In provided examples with sales, it could be about comparing "sales" historgrams for different "cities". For realtime applications monitoring certain distributions is priceless. PS. I just started using perspective, forgive me if histograms are implemented already. I just could not find them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can create a histogram by selecting an {
"plugin": "X Bar",
"group_by": [
"Sales Bucket"
],
"columns": [
"Sales"
],
"expressions": {
"Sales Bucket": "bucket(\"Sales\",100)"
},
"aggregates": {"Sales": "count"}
} histogram.mov |
Beta Was this translation helpful? Give feedback.
You can create a histogram by selecting an
"X Bar"
or"Y Bar"
chart with your desired column ingroup_by
field, and as (any) one column selected in thecolumns
field with an aggregate of"count"
. You can combine this with an expression column with thebucket()
function as well, as in this superstoreView
config:histogram.mov