joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.25k stars 234 forks source link

to avoid unnecessary divs in the dom #111

Closed thiswallz closed 5 years ago

thiswallz commented 6 years ago

I am working with smoothie and everything goes well, the thing is I am using more than 10 charts at the same time, and some dynamic ones, and my DOM is getting bigger and bigger with this "smoothie-chart-tooltip" div, even if I am not using tooltip, I just added a little validation and is working.

thiswallz commented 6 years ago

I am using it with angular 6, and every time I create a new instance is creating divs, this PR at least will solve not create divs when you don't need it.

image