charturbo - v0.1.0
    Preparing search index...

    Interface BarChartOptions

    interface BarChartOptions {
        animation?: ChartAnimationInput;
        axes?: {
            x?: ChartAxisOptions & ChartAxisBreakOptions;
            y?: ChartAxisOptions & ChartAxisBreakOptions;
        };
        background?: boolean
        | BarBackgroundOptions;
        barThickness?: number;
        color?: ColorInput;
        cornerRadius?: number;
        decal?: ChartDecalInput;
        description?: string;
        errorBars?: BarErrorBarStyle;
        grid?: ChartGridStyle;
        hover?: ChartHoverStyle;
        labels?: boolean | "auto" | BarLabelOptions;
        legend?: boolean | ChartLegendOptions;
        maxBarHeight?: number;
        orientation?: BarOrientation;
        padding?: ChartPaddingOptions;
        realtimeSort?: boolean | BarRealtimeSortOptions;
        seriesName?: string;
        title?: string;
        viewMode?: "2d" | "3d";
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Enter / update animation of this chart (default: the SDK setting, setAnimation)

    breaks apply to the value axis only (axes.y; horizontal bars: axes.x; 2D)

    background?: boolean | BarBackgroundOptions

    Background tracks behind the bars, across the whole value axis (2D): true for the theme default or a color / opacity. Grouped bars get one per bar slot (hidden series drop theirs), stacked / percent bars one per category. Not hover targets

    barThickness?: number

    Bar width in world units (default: 72% of the slot)

    color?: ColorInput

    Default bar color when an item has none (default: first palette color)

    cornerRadius?: number

    Radius of the rounded data-end corners in CSS pixels, 2D only (default: 4)

    Pattern fills over the bars (2D, not pictorial bars) (accessibility, ECharts aria.decal): true gives each series (single series: each item category) its own automatic pattern; options apply over the automatic patterns (default off).

    description?: string

    Accessible name of the canvas; replaces the auto summary (which moves to the description)

    errorBars?: BarErrorBarStyle

    Look of error bars (values come from error on items / series)

    Hover style (barHighlightColor). See ChartHoverStyle.

    labels?: boolean | "auto" | BarLabelOptions

    Data labels on the bars: true, 'auto' (hide what does not fit / collides) or options (2D)

    legend?: boolean | ChartLegendOptions

    Legend. Multi-series: series toggle (re-stacks) / hover emphasis, shown for 2+ series in 2D. Single series (on request, static): a key of the item category values (color of each category's first bar) when items have categories, else one entry named seriesName

    maxBarHeight?: number
    orientation?: BarOrientation

    'horizontal': categories down the left axis, bars growing right (negative values left); axes.x is then the value axis and axes.y the category axis. 2D only (default 'vertical')

    realtimeSort?: boolean | BarRealtimeSortOptions

    Bar race (single-series 2D bars): bars are sorted by value (largest first: left, or top when horizontal) and, re-rendered with new values and animation on, slide to their new rank by label while category labels ride along and data labels count up. { max } keeps the largest max bars (bars entering / leaving fade). The value axis takes the new domain at once

    seriesName?: string

    Single-series charts: series name of the legend entry (default: 'Value' in the chart language)

    title?: string
    viewMode?: "2d" | "3d"
    width?: number