Skip to content

Variable: densityHeatmap ​

ts
const densityHeatmap: ExpressFunction<DensityHeatmapOptions>;

A density heatmap (px.density_heatmap): a histogram2d per facet / frame counting the rows in each x-y bin (or aggregating z), colored on layout.coloraxis. Marginals share its axes.

Example ​

ts
const figure = densityHeatmap(rows, { x: 'total_bill', y: 'tip', marginalX: 'histogram' });

Released under the MIT License.