* @protected
(index)
| 104 | * @protected |
| 105 | */ |
| 106 | getLabelAndValue(index) { |
| 107 | const meta = this._cachedMeta; |
| 108 | const labels = this.chart.data.labels || []; |
| 109 | const {xScale, yScale} = meta; |
| 110 | const parsed = this.getParsed(index); |
| 111 | const x = xScale.getLabelForValue(parsed.x); |
| 112 | const y = yScale.getLabelForValue(parsed.y); |
| 113 | const r = parsed._custom; |
| 114 | |
| 115 | return { |
| 116 | label: labels[index] || categoryLabel(meta, parsed), |
| 117 | value: '(' + x + ', ' + y + (r ? ', ' + r : '') + ')' |
| 118 | }; |
| 119 | } |
| 120 | |
| 121 | update(mode) { |
| 122 | const points = this._cachedMeta.data; |
nothing calls this directly
no test coverage detected