MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / createAxisTicks

Function createAxisTicks

libs/echarts/echarts.simple.js:38300–38305  ·  view source on GitHub ↗

* @param {module:echats/coord/Axis} axis * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea. * @return {Object} { * ticks: Array. * tickCategoryInterval: number * }

(axis, tickModel)

Source from the content-addressed store, hash-verified

38298 * }
38299 */
38300function createAxisTicks(axis, tickModel) {
38301 // Only ordinal scale support tick interval
38302 return axis.type === 'category'
38303 ? makeCategoryTicks(axis, tickModel)
38304 : {ticks: axis.scale.getTicks()};
38305}
38306
38307function makeCategoryLabels(axis) {
38308 var labelModel = axis.getLabelModel();

Callers 1

echarts.simple.jsFile · 0.70

Calls 1

makeCategoryTicksFunction · 0.70

Tested by

no test coverage detected