André Farzat

Results 21 comments of André Farzat

Hello @fgiamma . Happy new year ! 😸 Please, note that `angular-plotly.js` is an angular wrapper for `plotly.js`. Thus, you want to localize `plotly.js` itself. There is the `plotly.js-locales` package...

Hello @kperveen , funny is that this is an angular error. Could you confirm that you've added/imported the PlotlyViaCdnModule correctly to the app.module ?

@dez1729 I believe you're looking to something like this: https://www.npmjs.com/package/@thalesrc/resize-manager It watches an element and triggers an event (rxjs' observable) once the width/height of the element changes A library using...

you could use the `PlotlyService` to get the `plotly` instance and to trigger the redraw there. Like this: ```ts constructor(public plotlyService: PlotlyService) {} this.resizeService.observe(this.el.nativeElement).subscribe(async ({width, height}) => { const plotly...

@Hamza23579 I am not sure if this is an issue within `angular-plotly.js` or `plotly.js` itself. Have you tried it direct in the `plotly` and it worked?

Hello, @martingratt. This is very strange, for the issue is in the node's garbage collector. What is the nodejs' and npm's version you're using?

Hello, @bluppfisk . Unfortunately, there isn't a way to do this as the code is. What I can recomend, as a quick fix, is creating a service which you can...

Now, regarding the "global defaults". Do you have an idea in how it could be implemented? Like, declaring a theme globally?

I know in other languages (i.e.: python) there are themes: https://plotly.com/python/templates/ I will look to see if we can add it to JS

Hello @SharadhiSuresha . I am quite sure the issue is the `PlotlyViaCDNModule.setPlotlyBundle('basic');`. You've added the basic plotly.js file, which might no have the chart types you want/need. Have you tried...