Error Bar Recipe

Car observations with grouped mean confidence intervals
Observation points layered with fixed-pixel error-bar caps.

Minimal flow

Runnable: install ggaction and provide the named data array as plain row objects.

import { chart } from "ggaction";

const program = chart()
  .createCanvas()
  .createData({ values })
  .createErrorBar({
    x: { field: "group", fieldType: "nominal" },
    y: { field: "value" }
  })
  .createGuides();

You must decide

The library infers

When one compatible layer is already encoded, call createErrorBar() without options to reuse its fields, data, coordinate, and scales.

Continue

Error-bar tutorial · Error-bar API