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

Skip to content

Commit 255d9b9

Browse files
xaxis-iiandrefarzat
authored andcommitted
Update to support Plotly 2.0.0 interface.
1 parent e4e6408 commit 255d9b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/plotly/src/lib/plotly.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class PlotlyModule {
2727

2828
private isValid(): boolean {
2929
return PlotlyModule.plotlyjs !== undefined
30-
&& typeof PlotlyModule.plotlyjs.plot === 'function';
30+
&& (typeof PlotlyModule.plotlyjs.plot === 'function'
31+
|| typeof PlotlyModule.plotlyjs.newPlot === 'function');
3132
}
3233
}

0 commit comments

Comments
 (0)