This repository was archived by the owner on Jun 3, 2024. It is now read-only.
Ability to supply figure
without data
#223
Closed
Description
v0.22.1 introduced a bug:
+ if (intersection(
+ pluck('type', figure.data),
+ ['candlestick', 'ohlc']).length
+ ) {
+ PlotMethod = Plotly.newPlot;
+ } else {
+ PlotMethod = Plotly.react;
+ }
now, if figure.data
is undefined, the pluck('type', figure.data)
fails. I believe that we should be able to fix this with just a R.has('data', figure)
check. We should add some tests that supply figure as None
, {}
, {'layout': {}}
, and {'data': []}