Custom legends : Array of objects [{ size : [], shape : [], shapeColor : [], line : [], lineColor : [], lineStart : [], lineEnd : [], text : [], x : number, y : number, title : string, paddingX : number, paddingY : number }]. When legendInside is true, paddingX / paddingY (default 0) inset the legend box from the x,y plotting panel edges so it stays inside for any legendPosition; an explicit x / y pins the legend instead and ignores the padding
array
[]
Bar,
BarLine,
Boxplot,
Bullet,
DotLine,
Dotplot,
Dumbbell,
Heatmap,
Line,
Lollipop,
Stacked,
StackedLine,
StackedPercent,
StackedPercentLine,
Violin,
Waterfall
Position for the legend. All eight positions work whether the legend is inside or outside the plot. Inside, a corner anchors the legend to that corner of the plotting panel. Outside, the legend gets one band or one column, so a corner is the top or bottom band flush with that side: topLeft / bottomLeft are justified left and topRight / bottomRight right, overriding legendHorizontalJustification; left and right are a column justified by legendVerticalJustification
string
right
topRight,
right,
bottomRight,
bottom,
bottomLeft,
left,
topLeft,
top
Bar,
BarLine,
Boxplot,
Bullet,
DotLine,
Dotplot,
Dumbbell,
Heatmap,
Line,
Lollipop,
Stacked,
StackedLine,
StackedPercent,
StackedPercentLine,
Violin,
Waterfall
# legendTextScaleFontFactor