interface Shape {
    fillcolor: string;
    label: Partial<ShapeLabel>;
    layer: "below" | "above";
    legendgroup: string;
    legendgrouptitle: {
        font?: Partial<Font>;
        text: string;
    };
    legendrank: number;
    line: Partial<ShapeLine>;
    name: string;
    opacity: number;
    path: string;
    showlegend: boolean;
    templateitemname: string;
    type:
        | "rect"
        | "circle"
        | "line"
        | "path";
    visible: boolean | "legendonly";
    x0: Datum;
    x1: Datum;
    xanchor: string | number;
    xref: "paper" | XAxisName;
    xsizemode: "pixel" | "scaled";
    y0: Datum;
    y1: Datum;
    yanchor: string | number;
    yref: "paper" | YAxisName;
    ysizemode: "pixel" | "scaled";
}

Properties

fillcolor: string
layer: "below" | "above"
legendgroup: string
legendgrouptitle: {
    font?: Partial<Font>;
    text: string;
}
legendrank: number
name: string
opacity: number
path: string
showlegend: boolean
templateitemname: string
type:
    | "rect"
    | "circle"
    | "line"
    | "path"
visible: boolean | "legendonly"
x0: Datum
x1: Datum
xanchor: string | number
xref: "paper" | XAxisName
xsizemode: "pixel" | "scaled"
y0: Datum
y1: Datum
yanchor: string | number
yref: "paper" | YAxisName
ysizemode: "pixel" | "scaled"