Skip to content

Commit

Permalink
Fix for Financial Charts (or any chart without dataset) (#6)
Browse files Browse the repository at this point in the history
* Fix for Financial Charts 

Or any chart that does not have a dataset

* Fix Lint
  • Loading branch information
devotox authored Jul 30, 2021
1 parent b5108c1 commit 7f04325
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function addColors(gradient, scale, colors) {

function setValue(meta, dataset, key, value) {
dataset[key] = value;
if (!meta.dataset) {
return;
}

if (meta.dataset.options) {
meta.dataset.options[key] = value;
Expand Down

0 comments on commit 7f04325

Please sign in to comment.