Variable: histogram
ts
const histogram: ExpressFunction<HistogramOptions>;A histogram (px.histogram): one histogram trace per group, sharing bins (bingroup), stacked by default. With both x and y, y is summed per x bin (histfunc: 'sum'). marginal draws the same values' distribution above it.
Example
ts
const figure = histogram(rows, { x: 'total_bill', color: 'sex', facetCol: 'day', facetColWrap: 2 });