ghalex / vue3-charts

Vue3-Charts is an SVG-based charting library that is very easy to use and highly customizable
https://vue3charts.org
MIT License
142 stars 23 forks source link

Let the parent container define width and height of the svg #7

Closed slowjack2k closed 3 years ago

slowjack2k commented 3 years ago

With this setting the parent container is able to scale the svg while the drawing is made on a larger canvas.

ghalex commented 3 years ago

Hi @slowjack2k,

The idea of having set width and height to svg container is important because all other chart calculations are based on width and height so you always need to know what the width and height is.

If you want dynamic size see this https://github.com/ghalex/vue3-charts/issues/2 issue.

slowjack2k commented 3 years ago

Hi @ghalex,

thanks, but in my usecase this doesn't scale to the size of the parent element.

What I recognized too, the Tooltip component does not work if you use bootstrap 5.

ghalex commented 3 years ago

Version 1.1.20 will fix the bootstrap tooltip issue.