Statistics as First-Class Dashboard Objects: Significance Brackets, FDR Correction, and Effect-Size Tiles in CanvasXpress

Most dashboards are built to show what happened — a mean, a bar, a trend line. Scientific analysis needs more: it needs to show whether it mattered. Was the difference between groups real, or noise? Does it survive correction for testing dozens of hypotheses at once? How big is the effect, and how confident are we in that estimate?

CanvasXpress now treats these questions as first-class citizens of the chart itself — not an afterthought bolted on with manual annotations, but configuration-driven objects: significance brackets with p-values, dashboard-wide multiple-testing correction, and effect-size/confidence-interval tiles. You can wire them up from your own precomputed statistics, or drive them entirely from the UI without writing a line of code.

The problem with "just add a p-value"

If you've ever tried to annotate a boxplot with significance stars by hand, you know the drill: compute the test somewhere else, figure out pixel coordinates for the bracket, format the p-value, remember which correction method you used, and redo all of it the moment the data changes. None of that belongs in your analysis script — it belongs in the chart's rendering layer, where it can respond to the data live.

CanvasXpress's approach keeps that separation clean. The rigorous part — running a t-test, a Wilcoxon test, an ANOVA — is something R or Python already do exceptionally well, and CanvasXpress doesn't try to reinvent that numerical ground truth. What CanvasXpress owns is turning the result of that analysis into a correctly placed, correctly labeled visual element on your chart: the bracket, the stars, the tile, the volcano threshold lines.

Significance brackets, driven by configuration

If you already have comparison results — p-values, group labels, sample sizes — you can hand them straight to the chart. Significance rendering is opt-in, so existing charts are completely unaffected unless you turn it on:

var cx = new CanvasXpress("cx", {
  y: {
    data: [[12.1, 13.4, 9.8], [15.6, 16.2, 14.9], [22.0, 21.4, 23.1]],
    vars: ["s1", "s2", "s3"],
    smps: ["Control", "TreatedA", "TreatedB"]
  }
}, {
  graphType: "Boxplot",
  showStatInference: true,
  statInference: {
    comparisons: [
      {
        groups: ["Control", "TreatedA"],
        test: "wilcox",
        p: 0.0021,
        padj: 0.0063,
        n: [24, 22]
      },
      {
        groups: ["Control", "TreatedB"],
        test: "wilcox",
        p: 0.00004,
        padj: 0.00012,
        n: [24, 21]
      }
    ],
    correction: { method: "BH", scope: "dashboard" },
    annotate: "padj"
  }
});

CanvasXpress draws the bracket over the compared groups, centers the label, and prints whichever value you asked for — the raw p-value, the corrected p-value, or significance stars derived automatically from the corrected value. The n per group is carried through so viewers see sample size alongside significance, not just a star.

Because the contract is just data in, rendering out, it doesn't matter whether those p and padj values came from an R script, a Python notebook, or a server-side pipeline. The chart doesn't need to know — it only needs the numbers and the group labels.

Correction that spans the whole dashboard

A single p-value is easy to misuse once you're running more than one comparison. CanvasXpress bakes multiple-testing correction into the same configuration: set correction.method to BH, bonferroni, BY, holm, hochberg, or none, and the corrected values that back your brackets reflect that method consistently. When a dashboard has several panels drawing from the same comparison set, correction can be scoped across all of them, so a "significant" result in one panel means the same thing as in another — not a locally generous threshold that happens to clear 0.05 in isolation.

If you want to explore how the significance calls shift as you tighten or loosen the false-discovery threshold, you don't have to touch configuration by hand at all.

Doing it without writing config

Every piece of this is also available directly from the chart's own interface. Right-click a chart and open Customize → Statistics to find a dedicated submenu for brackets, correction method, which value to annotate, the FDR cutoff, and an editor for the pairwise comparisons themselves. The same controls live in the Statistics section of the Customizer panel, so you can turn significance testing on, pick your comparisons, choose a correction method, and watch the brackets update immediately.

For dashboard builders, there's a dedicated ✴ Significance toolbar button that opens a dialog for defining comparison rows, picking a correction method, and choosing what to annotate. Clicking Apply writes the configuration straight onto the panel and the bracket renders immediately — no separate analysis step required to see the chart update.

Once you're happy with a chart's statistical configuration, the Save as JSON action in the File menu captures it exactly as built, brackets and all, and dropping that file back onto a chart container reloads the same view — useful for sharing a specific comparison setup with a collaborator or coming back to it later.

Effect sizes, not just significance

A p-value tells you whether an effect is unlikely to be chance. It says nothing about how large the effect is. CanvasXpress's effect-size tiles address that directly: instead of a bare number, a tile shows a point estimate with its confidence interval — a log2 fold-change with its bounds, a hazard ratio with its range — drawn the same way CanvasXpress already renders interval data elsewhere in the library. The result reads at a glance: where the point sits, how wide the uncertainty is, and whether the interval crosses the line of no effect.

Volcano plots that know what they're looking at

Differential-expression style volcano plots get the same treatment. Rather than hand-building threshold lines on a generic scatter chart, a volcano configuration takes your fold-change and significance columns and automatically seeds the fold-change and FDR threshold lines for you, so the plot's quadrants — up, down, not significant — are visually obvious without manual decoration work.

Why this matters

Scientific dashboards live or die on trust. A bracket with a star is only useful if everyone looking at it understands which test produced it and whether it survived correction. By keeping the heavy numerical lifting in the tools built and validated for it, and focusing CanvasXpress's engine on precise, consistent rendering of those results, you get dashboards that look right and are right — and you get there whether you're scripting the configuration yourself or clicking through the Statistics menu.