(value)
| 131 | |
| 132 | // Used to get data value locations. Value can either be an index or a numerical value |
| 133 | getPixelForValue(value) { |
| 134 | if (typeof value !== 'number') { |
| 135 | value = this.parse(value); |
| 136 | } |
| 137 | |
| 138 | return value === null ? NaN : this.getPixelForDecimal((value - this._startValue) / this._valueRange); |
| 139 | } |
| 140 | |
| 141 | // Must override base implementation because it calls getPixelForValue |
| 142 | // and category scale can have duplicate values |
no test coverage detected