Skip to content
Plotly templates

Histogram (Plotly)

Distribution of a single variable with binning.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {
      "type": "histogram",
      "x": [4.1, 4.4, 4.6, 4.8, 5.0, 5.0, 5.1, 5.2, 5.2, 5.3, 5.4, 5.5, 5.5, 5.6, 5.7, 5.8, 6.0, 6.1, 6.3, 6.7],
      "nbinsx": 8,
      "marker": {"color": "#6366f1"}
    }
  ],
  "layout": {
    "title": "Measurement distribution",
    "xaxis": {"title": "Value"},
    "yaxis": {"title": "Frequency"},
    "bargap": 0.05
  }
}