* @param {number} value * @return {string}
(value)
| 493 | * @return {string} |
| 494 | */ |
| 495 | getLabelForValue(value) { |
| 496 | const adapter = this._adapter; |
| 497 | const timeOpts = this.options.time; |
| 498 | |
| 499 | if (timeOpts.tooltipFormat) { |
| 500 | return adapter.format(value, timeOpts.tooltipFormat); |
| 501 | } |
| 502 | return adapter.format(value, timeOpts.displayFormats.datetime); |
| 503 | } |
| 504 | |
| 505 | /** |
| 506 | * @param {number} value |