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

Commit

Permalink
Fixing linter errors and securing code
Browse files Browse the repository at this point in the history
  • Loading branch information
dg-datavisyn committed Aug 9, 2019
1 parent 8c37fe6 commit 0b81bb4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,15 @@ const ErrorBarsPlugin = {

// map error bar to barchart bar via label property
barchartCoords.forEach((dataset, i) => {
var hidden = chart.data.datasets[i]._meta[0].hidden
if (hidden) {
return;
if (chart.data.dataset[i]._meta != null && chart.data.dataset[i]._meta.length > 0) {
var hidden = chart.data.datasets[i]._meta[0].hidden;
if (hidden) {
return;
}
}

dataset.forEach((bar) => {


let cur = errorBarCoords[i];
if (!cur) {
Expand Down

0 comments on commit 0b81bb4

Please sign in to comment.