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

Function barSign

src/controllers/controller.bar.ts:300–305  ·  view source on GitHub ↗
(size: number, vScale: BarScale, actualBase: number)

Source from the content-addressed store, hash-verified

298}
299
300function barSign(size: number, vScale: BarScale, actualBase: number) {
301 if (size !== 0) {
302 return sign(size);
303 }
304 return (vScale.isHorizontal() ? 1 : -1) * (vScale.min >= actualBase ? 1 : -1);
305}
306
307function borderProps(properties: BarProperties) {
308 let reverse: boolean, start: string, end: string, top: string, bottom: string;

Callers 1

Calls 1

isHorizontalMethod · 0.65

Tested by

no test coverage detected