MCPcopy
hub / github.com/chartjs/Chart.js / positionIsHorizontal

Function positionIsHorizontal

src/core/core.controller.js:21–23  ·  view source on GitHub ↗
(position, axis)

Source from the content-addressed store, hash-verified

19
20const KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
21function positionIsHorizontal(position, axis) {
22 return position === 'top' || position === 'bottom' || (KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x');
23}
24
25function compare2Level(l1, l2) {
26 return function(a, b) {

Callers 1

buildOrUpdateScalesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected