在 Flot js 中设置固定高度
Set fixed height in Flot js
我使用 lib 进行绘图。我想为情节设置固定高度。现在情节的高度取决于里面显示的数据。怎么做?
解决方法是:
You need to set the width and height of this div, otherwise the plot
library doesn't know how to scale the graph. You can do it inline like
this:
<div id="placeholder" style="width:600px;height:300px"></div>
我使用 lib 进行绘图。我想为情节设置固定高度。现在情节的高度取决于里面显示的数据。怎么做?
解决方法是:
You need to set the width and height of this div, otherwise the plot library doesn't know how to scale the graph. You can do it inline like this:
<div id="placeholder" style="width:600px;height:300px"></div>