MCPcopy Create free account
hub / github.com/chartjs/Chart.js / BarOptions

Interface BarOptions

src/types/index.d.ts:2153–2183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2151}
2152
2153export interface BarOptions extends Omit<CommonElementOptions, 'borderWidth'> {
2154 /**
2155 * The base value for the bar in data units along the value axis.
2156 */
2157 base: number;
2158
2159 /**
2160 * Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top', 'middle', false (none) or true (all).
2161 * @default 'start'
2162 */
2163 borderSkipped: 'start' | 'end' | 'left' | 'right' | 'bottom' | 'top' | 'middle' | boolean;
2164
2165 /**
2166 * Border radius
2167 * @default 0
2168 */
2169 borderRadius: number | BorderRadius;
2170
2171 /**
2172 * Amount to inflate the rectangle(s). This can be used to hide artifacts between bars.
2173 * Unit is pixels. 'auto' translates to 0.33 pixels when barPercentage * categoryPercentage is 1, else 0.
2174 * @default 'auto'
2175 */
2176 inflateAmount: number | 'auto';
2177
2178 /**
2179 * Width of the border, number for all sides, object to specify width for each side specifically
2180 * @default 0
2181 */
2182 borderWidth: number | { top?: number, right?: number, bottom?: number, left?: number };
2183}
2184
2185export interface BorderRadius {
2186 topLeft: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected