* @protected
()
| 291 | * @protected |
| 292 | */ |
| 293 | configure() { |
| 294 | const ticks = this.ticks; |
| 295 | let start = this.min; |
| 296 | let end = this.max; |
| 297 | |
| 298 | super.configure(); |
| 299 | |
| 300 | if (this.options.offset && ticks.length) { |
| 301 | const offset = (end - start) / Math.max(ticks.length - 1, 1) / 2; |
| 302 | start -= offset; |
| 303 | end += offset; |
| 304 | } |
| 305 | this._startValue = start; |
| 306 | this._endValue = end; |
| 307 | this._valueRange = end - start; |
| 308 | } |
| 309 | |
| 310 | getLabelForValue(value) { |
| 311 | return formatNumber(value, this.chart.options.locale, this.options.ticks.format); |