Chartbreaker
    Preparing search index...

    Variable createLineStyleOptionConst

    createLineStyleOption: <T extends ChartbreakerObject>(
        { name, _set, _get, flags, }: {
            _get: LineStyleOption<T>["_get"];
            _set: LineStyleOption<T>["_set"];
            flags?: LineStyleOption<T>["flags"];
            name?: LineStyleOption<T>["name"];
        },
    ) => LineStyleOption<T>

    Creates a line-style option including the ENUM_LINESTYLE flag and using "Line style" as the default label.

    The returned option object will:

    • OR your flags with ENUM_LINESTYLE
    • Provide a human‑readable name (customizable)
    • Expose a mapping of numeric values to (translated) labels: 0 → "Normal" 1 → "Dotted" 2 → "Dashed"
    • Delegate getting and setting of the current style via your callbacks

    Type Declaration