We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7694d3f commit04a979cCopy full SHA for 04a979c
projects/plotly/src/lib/plotly.service.ts
@@ -95,15 +95,15 @@ export class PlotlyService {
95
publicplot(div:Plotly.PlotlyHTMLElement,data:Plotly.Data[],layout?:Partial<Plotly.Layout>,config?:Partial<Plotly.Config>,frames?:Partial<Plotly.Config>[]):Promise<any>{
96
if(frames){
97
constobj={data, layout, config, frames};
98
-if(typeOf(this.__getPlotly.plot==='function')){
+if(typeof(this._getPlotly().plot)==='function'){
99
returnthis._getPlotly().plot(div,obj)asPromise<any>;
100
}else{
101
// Adds support for Plotly 2.0.0 release candidates
102
returnthis._getPlotly().newPlot(div,obj)asPromise<any>;
103
}
104
105
106
107
returnthis._getPlotly().plot(div,data,layout,config)asPromise<any>;
108
109