Clarify how to set the dimensions

git-svn-id: https://flot.googlecode.com/svn/trunk@14 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 19 years ago
parent f1d6a37175
commit cf12db47c8

@ -34,8 +34,12 @@ Create a placeholder div to put the graph in:
<div id="placeholder"></div> <div id="placeholder"></div>
You need to set the width and height of this div, otherwise the plot 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 or library doesn't know how to scale the graph. You can do it inline like
with an external stylesheet. this:
<div id="placeholder" style="width:600px;height:300px"></div>
You can also do it with an external stylesheet.
Then on document ready, run the plot function: Then on document ready, run the plot function:

Loading…
Cancel
Save