* Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw` * hook, in which case, plugins will not be called on `afterDatasetsDraw`. * @private
()
| 763 | * @private |
| 764 | */ |
| 765 | _drawDatasets() { |
| 766 | if (this.notifyPlugins('beforeDatasetsDraw', {cancelable: true}) === false) { |
| 767 | return; |
| 768 | } |
| 769 | |
| 770 | const metasets = this.getSortedVisibleDatasetMetas(); |
| 771 | for (let i = metasets.length - 1; i >= 0; --i) { |
| 772 | this._drawDataset(metasets[i]); |
| 773 | } |
| 774 | |
| 775 | this.notifyPlugins('afterDatasetsDraw'); |
| 776 | } |
| 777 | |
| 778 | /** |
| 779 | * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw` |
no test coverage detected