With Echarts (from Baidu) i want put a pie chart inside a div element (i'm using bootstrap).
So i have:
<div class="row">
<div class="col-md-4">
<div id="chartGift" style="height:400px;"></div>
</div>
</div>
I've take the javascript code from the official documentation https://ecomfe.github.io/echarts/doc/example/pie1.html#-en
The problem is that the pie doesn't appear because, inspecting the html code, i see that the width is 0. Why echarts doesn't set the width from the parent element? I don't want set static width (i see that it works) because the chart isn't responsive.
width: 100%
otherwiseresize()
doesn't work. Documentation doesn't mention this too, but I guess it's just common sense :) – Asthma