(scale: BarScale, type: string)
| 82 | type BarEdgeOptions = Pick<BarOptions, 'borderSkipped' | 'inflateAmount'>; |
| 83 | |
| 84 | function getAllScaleValues(scale: BarScale, type: string): number[] { |
| 85 | if (!scale._cache.$bar) { |
| 86 | const visibleMetas = scale.getMatchingVisibleMetas(type); |
| 87 | let values: number[] = []; |
| 88 | |
| 89 | for (let i = 0, ilen = visibleMetas.length; i < ilen; i++) { |
| 90 | values = values.concat(visibleMetas[i].controller.getAllParsedValues(scale)); |
| 91 | } |
| 92 | scale._cache.$bar = _arrayUnique(values.sort((a, b) => a - b)); |
| 93 | } |
| 94 | return scale._cache.$bar; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Returns the grouped metasets of the given type on the index scale, in sorted order. |
no test coverage detected