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

Method isHorizontal

src/core/core.scale.js:765–768  ·  view source on GitHub ↗

* @return {boolean}

()

Source from the content-addressed store, hash-verified

763 * @return {boolean}
764 */
765 isHorizontal() {
766 const {axis, position} = this.options;
767 return position === 'top' || position === 'bottom' || axis === 'x';
768 }
769 /**
770 * @return {boolean}
771 */

Callers 12

getLabelsMethod · 0.95
updateMethod · 0.95
configureMethod · 0.95
setDimensionsMethod · 0.95
fitMethod · 0.95
_calculatePaddingMethod · 0.95
_tickSizeMethod · 0.95
_computeGridLineItemsMethod · 0.95
_computeLabelItemsMethod · 0.95
drawBorderMethod · 0.95
_maxDigitsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected