MAIDR JavaScript API
    Preparing search index...

    Options accepted by createMaidrFromGoogleChart.

    interface GoogleChartAdapterOptions {
        gaugeOptions?: GoogleGaugeOptions;
        stepDirection?: StepDirection;
        thresholdOptions?: ThresholdOptions;
        waterfallTotals?: readonly number[];
        id?: string;
        title?: string;
        chartType: GoogleChartType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    gaugeOptions?: GoogleGaugeOptions

    The Gauge draw options — the same object passed to chart.draw(…).

    A dial's range and its coloured bands live there and nowhere else, and they are most of what a gauge means: without them the reading is a bare number with nothing to sit against.

    stepDirection?: StepDirection

    Where a 'SurvivalChart' jumps between samples — 'hv' for a curve that holds its value until the next event, which is what a Kaplan-Meier estimate does.

    Omit it when you are not sure: MAIDR substitutes no default, so the description stays silent about the convention rather than naming one the chart never authored.

    thresholdOptions?: ThresholdOptions

    The cutoffs a 'VolcanoChart' or 'ManhattanChart' is read through — the significance line, which side of it counts, and the effect size.

    These charts carry tens of thousands of points of which a few dozen matter, and the thresholds are what make those few reachable: they drive the summary on entry and the rotor filter that jumps between the hits. They live in the plotted reference lines and in the analysis, never in the DataTable, and MAIDR guesses none — a line at the wrong place would sort every point on the figure onto the wrong side of it, silently.

    waterfallTotals?: readonly number[]

    Which rows of a 'WaterfallChart' restate the running total rather than changing it — the opening and closing bars, and any subtotal drawn along the way, by DataTable row index.

    Cannot be inferred: a subtotal's start and end are ordinary numbers, and a reader told a subtotal "rose by 950" hears a contribution the chart never made.

    id?: string

    Unique ID for the MAIDR instance. Defaults to the container element's id.

    title?: string

    Chart title. Extracted from chart options when omitted.

    chartType: GoogleChartType

    The Google Charts chart type string (e.g. 'BarChart', 'LineChart'). Must be provided because the chart instance does not expose its own type.

    For stacked, normalized, or grouped (dodged) variants, use the explicit adapter type strings — 'StackedColumnChart', 'DodgedColumnChart', 'StackedAreaChart', 'NormalizedAreaChart'. Google draws those with the same class as their plain counterpart and the difference lives in the draw options, which the adapter never sees. The same goes for the marks Google has no class for at all — 'DotChart', 'LollipopChart', 'FunnelChart', 'WaterfallChart', 'DivergingBarChart'.