* @param {Chart} chart * @param {number} datasetIndex
(chart, datasetIndex)
| 253 | * @param {number} datasetIndex |
| 254 | */ |
| 255 | constructor(chart, datasetIndex) { |
| 256 | this.chart = chart; |
| 257 | this._ctx = chart.ctx; |
| 258 | this.index = datasetIndex; |
| 259 | this._cachedDataOpts = {}; |
| 260 | this._cachedMeta = this.getMeta(); |
| 261 | this._type = this._cachedMeta.type; |
| 262 | this.options = undefined; |
| 263 | /** @type {boolean | object} */ |
| 264 | this._parsing = false; |
| 265 | this._data = undefined; |
| 266 | this._objectData = undefined; |
| 267 | this._sharedOptions = undefined; |
| 268 | this._drawStart = undefined; |
| 269 | this._drawCount = undefined; |
| 270 | this.enableOptionSharing = false; |
| 271 | this.supportsDecimation = false; |
| 272 | this.$context = undefined; |
| 273 | this._syncList = []; |
| 274 | this.datasetElementType = new.target.datasetElementType; |
| 275 | this.dataElementType = new.target.dataElementType; |
| 276 | |
| 277 | this.initialize(); |
| 278 | } |
| 279 | |
| 280 | initialize() { |
| 281 | const meta = this._cachedMeta; |
nothing calls this directly
no test coverage detected