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