Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 3211b36

Browse files
authored
bypass afterDatasetsDraw of dataset is hidden
Link to #12
1 parent c56d85d commit 3211b36

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/plugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ const ErrorBarsPlugin = {
189189
// map error bar to barchart bar via label property
190190
barchartCoords.forEach((dataset, i) => {
191191
dataset.forEach((bar) => {
192+
var hidden = chart.data.datasets[i]._meta[0].hidden
193+
if (hidden) {
194+
return;
195+
}
196+
192197
let cur = errorBarCoords[i];
193198
if (!cur) {
194199
return;

0 commit comments

Comments
 (0)