Skip to content

Instantly share code, notes, and snippets.

@ZenwalkerD
Created September 23, 2020 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZenwalkerD/c70f7ce859adc901f874e9398d8389ee to your computer and use it in GitHub Desktop.
Save ZenwalkerD/c70f7ce859adc901f874e9398d8389ee to your computer and use it in GitHub Desktop.
Plotly : any;
constructor( private dynamicScriptLoaderService: PlotlyDynamicScriptLoaderService){}
ngOnInit(){
this.dynamicScriptLoaderService.loadDynamicScript()
.then(
() => {
this.Plotly = (window as any).Plotly;
},
() => {
this.isError = true;
console.log("Error loading graph");
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment