MAIDR JavaScript API
    Preparing search index...

    Type Alias PowerBIChartType

    PowerBIChartType: "column" | "bar" | "line" | "scatter" | "pie" | "donut"

    The chart a custom visual draws, which decides the MAIDR layer it becomes.

    • column — vertical bars. One measure and no series field gives a bar layer; several series give a dodged_bar or stacked_bar layer, per PowerBIAdapterOptions.barMode.
    • bar — the same, drawn horizontally.
    • line — one line per series (or per measure, with no series field).
    • scatter — a point per category, positioned by the x and y measures.
    • pie / donut — one slice per category. MAIDR reads a donut as a pie.

    The data view alone cannot say which of these the visual draws — a category and a measure are equally a column chart, a line and a pie — so the visual names it.