Fills one bar rectangle, optionally rounded and/or bordered.
<insightdock/detail/bar_shape.h>
[[visibility]]
void
fill_bar(
DrawTarget& buffer,
float x,
float y,
float w,
float h,
Color const& fill_color,
float corner_radius,
Color const& border_color,
float border_width);
Shared by BarChart and ComboChart so both apply identical corner-radius/border handling. A rounded bar with a border draws a plain rectangular outline (accepted v1 limitation — the outline slightly overlaps the rounded corners).
| Name | Description |
|---|---|
| buffer | Pixel-space drawing surface shared by all built-in charts. |
| fill_color | RGBA color with 8-bit per channel. |
| border_color | RGBA color with 8-bit per channel. |