显示Echarts图,但是tooltip不显示,因为canvas容器的问题。
从代码:
<canvas id="dailydateChart" class="home-report" width="380px" height="300px" style="width: 100vw;"></canvas>
改为:
<div id="dailydateChart" width="100vw" height="80vw" style="width: 100vw; height: 80vw;" ></div>