* Draws all datasets unless a plugin returns `false` to the `beforeDatasetsDraw` * hook, in which case, plugins will not be called on `afterDatasetsDraw`. * @private
()
| 842 | * @private |
| 843 | */ |
| 844 | _drawDatasets() { |
| 845 | if (this.notifyPlugins('beforeDatasetsDraw', {cancelable: true}) === false) { |
| 846 | return; |
| 847 | } |
| 848 | |
| 849 | const metasets = this.getSortedVisibleDatasetMetas(); |
| 850 | for (let i = metasets.length - 1; i >= 0; --i) { |
| 851 | this._drawDataset(metasets[i]); |
| 852 | } |
| 853 | |
| 854 | this.notifyPlugins('afterDatasetsDraw'); |
| 855 | } |
| 856 | |
| 857 | /** |
| 858 | * Draws dataset at index unless a plugin returns `false` to the `beforeDatasetDraw` |
no test coverage detected