MAIDR JavaScript API
    Preparing search index...
    • Map AnyChart series type strings to MAIDR TraceType values.

      AnyChart uses lowercase type names such as "bar", "line", "column", etc. Multi-word types are normalised to kebab-case before lookup. This mapping covers the chart types that MAIDR currently supports.

      Parameters

      • anyChartType: string

      Returns AnyChartTraceType | null

      • "bar" (horizontal) and "column" (vertical) both map to TraceType.BAR. MAIDR does not currently distinguish bar orientation at the trace-type level.
      • area and spline-area map to TraceType.AREA, which is read as the filled band it is drawn as. Whether that band is stacked is a chart-level question the series cannot answer — resolveAreaVariant asks the y scale and promotes the layer.
      • step-area is the one area type that still loses its fill: MAIDR has no stepped area trace, and a staircase is better described as a staircase than as a smoothly interpolated band. A runtime warning is emitted so developers are aware.
      • The step-drawn types (step-line, step-area) map to TraceType.STEP so they are announced and navigated as the piecewise-constant series they are, rather than as interpolated lines.
      • stick is AnyChart's lollipop: a stroke from the baseline to the value, usually with a marker on its end. It carries the same x / value pair a bar does and is read as TraceType.LOLLIPOP — one category, one magnitude, announced as the chart the author drew.
      • range-column and range-bar carry low / high rather than value, which is the pair TraceType.DUMBBELL is for. AnyChart draws them as floating bars rather than as two dots joined by a segment, so the mark differs; what a reader navigates does not.
      • marker maps to TraceType.SCATTER here, but a marker series on an ordinal x scale is a Cleveland dot plot rather than a point cloud. That is a question about the chart's scale rather than about the series, so resolveMarkerVariant asks it and promotes the layer.
      • choropleth is the map module's shaded-region series. It names itself, so nothing chart-level is required to recognise one — deliberately, because readChartType answers '' on a build with no getType() and on a chart that has not been drawn, and gating on it would drop working maps.
      • "pie" covers doughnuts too: AnyChart draws one with chart.innerRadius() on an ordinary pie, so both report the same type and read identically. A pie chart has no series API of its own, so this branch only fires for builds that expose one — buildSubplot routes the chart-level pie before ever asking for a series.