(axis, labelModel)
| 38314 | } |
| 38315 | |
| 38316 | function makeCategoryLabelsActually(axis, labelModel) { |
| 38317 | var labelsCache = getListCache(axis, 'labels'); |
| 38318 | var optionLabelInterval = getOptionCategoryInterval(labelModel); |
| 38319 | var result = listCacheGet(labelsCache, optionLabelInterval); |
| 38320 | |
| 38321 | if (result) { |
| 38322 | return result; |
| 38323 | } |
| 38324 | |
| 38325 | var labels; |
| 38326 | var numericLabelInterval; |
| 38327 | |
| 38328 | if (isFunction$1(optionLabelInterval)) { |
| 38329 | labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval); |
| 38330 | } |
| 38331 | else { |
| 38332 | numericLabelInterval = optionLabelInterval === 'auto' |
| 38333 | ? makeAutoCategoryInterval(axis) : optionLabelInterval; |
| 38334 | labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval); |
| 38335 | } |
| 38336 | |
| 38337 | // Cache to avoid calling interval function repeatly. |
| 38338 | return listCacheSet(labelsCache, optionLabelInterval, { |
| 38339 | labels: labels, labelCategoryInterval: numericLabelInterval |
| 38340 | }); |
| 38341 | } |
| 38342 | |
| 38343 | function makeCategoryTicks(axis, tickModel) { |
| 38344 | var ticksCache = getListCache(axis, 'ticks'); |
no test coverage detected