Plugins 〉SPC Histogram


Developer

Kenso Software

Sign up to receive occasional product news and updates:



Panel
community

SPC Histogram

  • Overview
  • Installation
  • Change log
  • Related content

SPC Histogram

Dynamic JSON Badge Grafana

Visualize your process data distributions with built-in Statistical Process Control — right inside Grafana. SPC Histogram turns your time series data into interactive histograms with automatic control limits, bell curves, capability indices, and a detailed statistics table.

SPC Histogram

Why SPC Histogram?

Histograms are a fundamental tool for understanding process data. When combined with Statistical Process Control, they answer the key questions about your process:

  • Control limits — automatically calculated LCL/UCL lines show whether variation is within expected bounds
  • Capability indices — Cp, Cpk, Pp, and Ppk tell you whether your process fits within specification limits
  • Bell curves — Gaussian curves fitted using the Levenberg-Marquardt algorithm reveal how closely your data follows a normal distribution
  • Statistics at a glance — a built-in table displays n, Mean, Std Dev, Min, Max, and more for every series

Gaussian Curve

Built for Grafana

SPC Histogram is built using Grafana's native visualization components. This means it inherits the look, feel, and behavior you already know:

  • Native theming — automatically adapts to light and dark mode
  • Standard panel options — legend placement, tooltip behavior, and field overrides work just like any other Grafana panel
  • Resizable statistics table — drag the splitter to balance chart and table space, just like Grafana's built-in panels
  • Works with any data source — use it with SQL databases, Prometheus, InfluxDB, CSV files, or any other Grafana data source

Features

FeatureDescription
Control chartsXmR, Xbar-R, and Xbar-S chart types with automatic LCL/UCL calculation
Bell curvesGaussian (Levenberg-Marquardt fit) and histogram curve overlays
Statistics tablen, Mean, Std Dev, Min, Max, LCL, UCL, Cp, Cpk, Pp, Ppk per series
Custom control linesStatic values or dynamic values pulled from a separate query
Specification limitsLSL/USL with automatic capability index calculation
Multiple seriesCompare distributions side by side or combine into one histogram
AggregationMean, Range, Standard Deviation, and Moving Range modes
Export to CSVExport statistics, control lines, and histogram buckets to CSV
Interactive tooltipsBucket counts, control line values, and Gaussian curve values on hover
Resizable layoutDrag the splitter between chart and statistics table

Statistics Table

Use Cases

  • Manufacturing quality — monitor dimensional tolerances with control limits and capability indices
  • Process engineering — track measurement stability and detect shifts in process centering
  • Laboratory testing — analyze instrument measurement distributions and repeatability
  • Supply chain — monitor incoming material quality against specification limits
  • Pharmaceutical — validate process capability for batch manufacturing (Cp/Cpk)

Requirements

  • Grafana 11 or later

Getting Started

  1. Install the plugin from the Grafana Plugin Catalog
  2. Add a new panel and select SPC Histogram as the visualization
  3. Connect a data source with time series data
  4. Choose a Chart Type (XmR, Xbar-R, or Xbar-S) to enable automatic control limits
  5. Add Control Lines for specification limits (LSL/USL) to see capability indices
  6. Add a Bell Curve to visualize the distribution fit

Multiple Series

Panel Options

Histogram

OptionDescriptionDefault
Bucket countApproximate number of histogram bars30
Bucket sizeFixed width for each bucket (overrides bucket count)Auto
Bucket offsetShifts bucket boundaries by a fixed amount0
Combine seriesMerge all series into a single histogramOff
Feature QueriesSelect queries excluded from histogram calculationsNone

SPC

OptionDescriptionDefault
Chart typenone, X chart (XmR), mR chart (XmR), X chart (Xbar-R), R chart (Xbar-R), X chart (Xbar-S), S chart (Xbar-S)none
Subgroup sizeNumber of measurements per subgroup1
Aggregation typeNone, Moving range, Mean, Range, Standard Deviation. Only available when chart type is "none".None
Control linesLCL, UCL, Mean, Min, Max, Range, LSL, USL, Gaussian Peak, Custom, NominalNone

Curve

OptionDescriptionDefault
Add a Bell CurveGaussian or Histogram curve with configurable series, line width, and colorNone

Statistics Table

OptionDescriptionDefault
Show statistics tableDisplay the statistics table below the histogramOff
Visible columnsn, Mean, Std Dev, Min, Max, LCL, UCL, Cp, Cpk, Pp, PpkAll

Bar Appearance

OptionDescriptionDefault
Fill opacityBar fill opacity (0–100%)80%
Line widthBar border width (0–10)1
Gradient modeNone, Opacity, or HueNone

Documentation

For detailed documentation, configuration guides, and examples, see the full documentation.

Part of the KensoBI SPC Suite

SPC Histogram is part of a growing family of Statistical Process Control plugins for Grafana by Kenso Software:

SPC Chart Panel — Control charts for monitoring process stability over time. Supports Xbar-R, Xbar-S, and XmR charts with automatic calculation of control limits. If you're tracking whether a process is staying in control, this is your starting point.

SPC Pareto Panel — Pareto charts for identifying the most significant factors contributing to defects or issues. Automatic sorting, cumulative percentage lines, and 80/20 threshold analysis help you focus improvement efforts where they matter most.

SPC CAD Panel — Brings 3D geometry into the picture, letting you bind the data from control charts and histograms to physical features on your parts.

License

This software is distributed under the AGPL-3.0-only license — see LICENSE for details.

Support

If you have any questions or feedback, you can:

Installing SPC Histogram on Grafana Cloud:

For more information, visit the docs on plugin installation.

Changelog

1.4.2

Features

  • Statistics column editor: Added an info tooltip explaining the requirements for Cp, Cpk, Pp, and Ppk to appear (both LSL and USL must be configured, sufficient data points required).

Bug Fixes

  • Fix spec limits from feature series: LSL and USL control lines configured to pull values from a feature series field were not being resolved correctly; capability indices now reflect the actual series value.
  • Multi-series spec limit fallback: When a series has no LSL/USL configured, it now falls back to the limits defined for the first series, so a single pair of spec limits applies to all series by default.
  • Theme consistency: Replaced remaining hardcoded values with Grafana theme tokens — control line default colors now use the visualization palette (dark-green, dark-red, blue, etc.), hover range and tooltip offset use theme.spacing(), and annotation colors are resolved via theme.visualization.getColorByName().
  • Grafana dependency: Minimum required Grafana version bumped to 11.6.10.

1.4.1

  • Theme consistency: Replaced hardcoded pixel values and hex color constants with Grafana theme tokens (theme.spacing(), theme.colors.*, theme.visualization.getColorByName()) across editor and tooltip components, improving light/dark mode consistency.
  • Documentation: Updated plugin and usage documentation.

1.4.0

  • Export to CSV: Export calculated SPC data (statistics, control lines, and histogram buckets) to a CSV file. Available from the download icon in the statistics table header or by right-clicking the panel and selecting "Download CSV".
  • Statistics Table: Added a statistics table below the histogram showing descriptive statistics (n, Mean, Std Dev, Min, Max), control limits (LCL, UCL), and process capability indices (Cp, Cpk, Pp, Ppk).
  • Configurable Table Columns: Choose which columns to display in the statistics table via the panel editor.
  • Multiple Custom Lines per Series: You can now add more than one custom control line to a single series.
  • Gaussian Peak (µ) Control Line: New control line type that marks the peak of the fitted Gaussian curve. Uses the Levenberg-Marquardt fitted mean, which may differ from the arithmetic mean for non-normal data.
  • Histogram Tooltip: Hover over histogram bins to see bucket range and count for each series, similar to Grafana's built-in histogram tooltip. Bell curve fitted values are included when a Gaussian curve is configured.

1.3.0

  • Added support for Custom Control Lines to pull dynamic values from Feature Series, allowing more flexible histogram configurations.
  • Added the ability to mark series as Feature Series and hide them from the histogram.
  • Introduced support for a subgroupSize dashboard variable to control subgroup size across multiple SPC Histogram panels.

1.2.0

  • Gaussian Curve Functionality: You can now add a Gaussian (normal distribution) curve to your histograms.
  • Histogram Curve: A new option to plot a smoothed curve along your histogram for better data visualization.
  • Bug Fixes: We've squashed a few bugs to improve overall performance.
  • New Documentation: Check out the updated documentation