Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2247b7c

Browse files
committed
remove warnings on PlotSchema.get() :
- check for 'area' trace type in get-plot-schema routine before calling traceIs()
1 parent c1055b6 commit 2247b7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plot_api/plot_schema.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,13 @@ function assignPolarLayoutAttrs(layoutAttributes) {
259259
}
260260

261261
function getSubplotRegistry(traceType) {
262+
if(traceType === 'area') return {}; // FIXME
263+
262264
var subplotsRegistry = Plotly.Plots.subplotsRegistry,
263265
subplotType = Object.keys(subplotsRegistry).filter(function(subplotType) {
264266
return Plotly.Plots.traceIs({type: traceType}, subplotType);
265267
})[0];
266268

267-
if(traceType === 'area') return {}; // FIXME
268269
if(subplotType === undefined) return {};
269270

270271
return subplotsRegistry[subplotType];

0 commit comments

Comments
 (0)