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

Function axisFromPosition

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

Source from the content-addressed store, hash-verified

29}
30
31function axisFromPosition(position) {
32 if (position === 'top' || position === 'bottom') {
33 return 'x';
34 }
35 if (position === 'left' || position === 'right') {
36 return 'y';
37 }
38}
39
40export function determineAxis(id, ...scaleOptions) {
41 if (idMatchesAxis(id)) {

Callers 1

determineAxisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected