Convert a Chart.js element (bar, slice, point, etc.) into an overlay shape.
Element types expose different geometry properties:
Arc (pie / doughnut slice): x, y (circle centre), innerRadius,
outerRadius, startAngle, endAngle — no box of any kind.
Box or violin: a bar's x, y, width, height, horizontal, plus its
summary as pixels along the value axis (median, q1, q3, min,
max, whiskerMin/whiskerMax, outliers, and a violin's coords).
Bar: x, y, base, width, height, horizontal (read directly).
Candlestick / OHLC: x (center), width, high/low (top/bottom pixel
y), open/close (body endpoints in pixels).
Matrix (heatmap cell): x, y (center), width, height, no base.
Point (scatter / line vertex): x, y, plus an effective radius.
Returns null if the element does not expose enough geometry to render.
Convert a Chart.js element (bar, slice, point, etc.) into an overlay shape.
Element types expose different geometry properties:
x,y(circle centre),innerRadius,outerRadius,startAngle,endAngle— no box of any kind.x,y,width,height,horizontal, plus its summary as pixels along the value axis (median,q1,q3,min,max,whiskerMin/whiskerMax,outliers, and a violin'scoords).x,y,base,width,height,horizontal(read directly).x(center),width,high/low(top/bottom pixel y),open/close(body endpoints in pixels).x,y(center),width,height, nobase.x,y, plus an effective radius.Returns
nullif the element does not expose enough geometry to render.