leeoniya / uPlot

📈 A small, fast chart for time series, lines, areas, ohlc & bars
MIT License
8.68k stars 379 forks source link

Load uPlot in Firefox with Angular #498

Closed unocelli closed 3 years ago

unocelli commented 3 years ago

Hi, I would like to integrate it in FUXA project but I have a problem. In FUXA I'm using angular and I insert the uPlot control in a SVG foreignObject, the insertion is dynamic and works fine in chrome but not in Firefox and I would like to ask you if you have an idea why. I attach a test project which reproduces the problem angu6-app.zip

in any case thanks...uPlot is amazing!

leeoniya commented 3 years ago

i've never used foreignObject in svg and have never worked with angular.

for me to be any help at all, you'll have to make a runnable, stripped down example in jsfiddle or codepen, using only uPlot, JS, HTML, CSS and SVG that reproduces the issue, without additional frameworks.

unocelli commented 3 years ago

sorry, my mistake, I found the error in my component...I've been too impatient

leeoniya commented 3 years ago

btw, FUXA looks really neat. my team at Grafana is working on something very similar, cause most SCADA interfaces and software is a pile of slow/antiquated/proprietary junk :+1: