roundedBar
roundedBar(
ctx,x,y,w,h,fill,opts?):void
Defined in: core/draw.ts:108
Draw a filled bar with optional rounded corners and hover glow. Used by BarChart, HBarChart, ComboChart, StackedBarChart, BulletChart, and any other rectangle-based chart.
Use this instead of raw fillRect so all rectangle-based charts share
the same visual language without each one re-implementing rounded corners
and hover treatment.
Parameters
ctx
CanvasRenderingContext2D
x
number
y
number
w
number
h
number
fill
string
opts?
RoundedBarOpts = {}
Returns
void