bherbruck / svelte-echarts

Apache ECharts wrapper for Svelte
https://bherbruck.github.io/svelte-echarts/
MIT License
91 stars 6 forks source link

[NOT ISSUE] How to correctly pass the width/height? #14

Closed kuatroka closed 6 months ago

kuatroka commented 9 months ago

As in the title. The option grid that exist in options is not exactly what I need, so I imagine I need to change the width/height in style in the div? But what if I want to use it as a component, how can I pass different width/height then? Thanks

bherbruck commented 6 months ago

It has 100% width and height, so put it inside a div and style that