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

Function axisFromPosition

src/core/core.config.js:32–39  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

30}
31
32function axisFromPosition(position) {
33 if (position === 'top' || position === 'bottom') {
34 return 'x';
35 }
36 if (position === 'left' || position === 'right') {
37 return 'y';
38 }
39}
40
41/**
42 * The axis of the first letter of the id, when the scale's type allows it:

Callers 2

axisFromTypeFunction · 0.85
determineAxisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected