Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Ability to supply figure without data #223

Closed
@chriddyp

Description

@chriddyp

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': []}

Metadata

Metadata

Labels

dash-type-bugSomething isn't working as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions