Skip to content

Commit

Permalink
Fixed exception in the SDK candlestick plot if text is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelezanda committed Mar 26, 2018
1 parent 8cecea6 commit b327680
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist_ion/plotly-ion.js
Original file line number Diff line number Diff line change
Expand Up @@ -65221,7 +65221,9 @@ exports.calcTransform = function calcTransform(gd, trace, opts) {
if(filterFn(open[i], close[i]) && isNumeric(high[i]) && isNumeric(low[i])) {
appendX(i);
appendY(open[i], high[i], low[i], close[i]);
textbox.push(textboxIn[i]);
if (textboxIn && textboxIn.length>0) {
textbox.push(textboxIn[i]);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist_ion/plotly-ion.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/traces/candlestick/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ exports.calcTransform = function calcTransform(gd, trace, opts) {
if(filterFn(open[i], close[i]) && isNumeric(high[i]) && isNumeric(low[i])) {
appendX(i);
appendY(open[i], high[i], low[i], close[i]);
textbox.push(textboxIn[i]);
if (textboxIn && textboxIn.length>0) {
textbox.push(textboxIn[i]);
}
}
}

Expand Down

0 comments on commit b327680

Please sign in to comment.