x4js - v2.3.33
    Preparing search index...

    Interface BargraphProps

    interface BargraphProps {
        animated?: boolean;
        attrs?: Record<string, string | number | boolean>;
        cls?: string;
        colors?: string[];
        content?: ComponentContent;
        disabled?: boolean;
        dom_events?: GlobalDOMEvents;
        existingDOM?: HTMLElement;
        flex?: number | boolean;
        height?: string | number;
        hidden?: boolean;
        id?: string;
        max?: number;
        min?: number;
        ns?: string;
        overshoot?: number;
        peak?: boolean;
        segments?: number;
        stretch?: boolean;
        style?: StyleProps;
        tag?: string;
        tooltip?: string;
        value?: number;
        vertical?: boolean;
        width?: string | number;
    }

    Hierarchy

    • Omit<CanvasProps, "paint" | "paint_cb" | "clear">
      • BargraphProps
    Index
    animated?: boolean

    the bar goes up quickly and down slowly, in a few frames; false: at once (true by default)

    attrs?: Record<string, string | number | boolean>

    HTML attributes.

    cls?: string

    Additional CSS classes.

    colors?: string[]

    the colors from min to max, as Gauge (linearColorStops: green to red); one color: a plain bar. none: the accent, pale to full

    Child content (components, strings, or HTML).

    disabled?: boolean

    Component is initialy disabled.

    dom_events?: GlobalDOMEvents

    DOM event listeners.

    existingDOM?: HTMLElement

    Existing DOM element to wrap.

    flex?: number | boolean

    Enables flex layout (boolean) or sets flex-grow (number).

    height?: string | number

    Height (px or string like "50%").

    hidden?: boolean

    Component is initialy hidden.

    id?: string

    Element ID.

    max?: number
    min?: number

    0 to 100 by default

    ns?: string

    Namespace for SVG/MathML elements.

    overshoot?: number

    the segments that start at this value or above have the overshoot color (alert); the colors go under it

    peak?: boolean

    the highest segment reached stays lit a second, then falls

    segments?: number

    the count of segments, 20 by default

    stretch?: boolean
    style?: StyleProps

    Inline CSS styles.

    tag?: string

    HTML tag name (default: "div").

    tooltip?: string

    Tooltip text.

    value?: number
    vertical?: boolean

    the segments go up from the bottom; else from the left

    width?: string | number

    Width (px or string like "50%" or "3em").