MAIDR Documentation - v3.69.0
    Preparing search index...

    Interface AnyChartBinderOptions

    Options the consumer can pass when binding an AnyChart chart to MAIDR.

    interface AnyChartBinderOptions {
        id?: string;
        title?: string;
        axes?: { x?: string; y?: string };
        selectors?: (string | string[] | undefined)[];
    }
    Index

    Properties

    id?: string

    Override the chart ID used in the MAIDR schema. Defaults to the chart container element's id attribute.

    title?: string

    Override the chart title. Defaults to chart.title().text().

    axes?: { x?: string; y?: string }

    Override axis labels.

    selectors?: (string | string[] | undefined)[]

    CSS selector overrides for SVG element highlighting.

    Each element in the array corresponds to a series by index. Use undefined at a given position to skip that series (no highlighting).

    AnyChart's internal SVG structure does not expose stable class names, so consumers should inspect the rendered DOM and provide explicit selectors for reliable highlighting.

    // Apply per-series selectors (2 series, second has none):
    selectors: ['.series-0 rect', undefined]

    // Apply the same selector to all series:
    selectors: ['.chart rect']