-
-
Save ZenwalkerD/c70f7ce859adc901f874e9398d8389ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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