You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
600 B
21 lines
600 B
<article>
|
|
<script type="text/javascript" src="/static/flot/jquery.flot.js"></script>
|
|
<script type="text/javascript" src="/static/flot/jquery.flot.resize.js"></script>
|
|
<script type="text/javascript">
|
|
var data, config;
|
|
$(document).ready(function() {
|
|
data = [];
|
|
for (var i=0; i<10; i++) {
|
|
data.push([i, i*i/10]);
|
|
}
|
|
config = {};
|
|
config.yaxis = {max: 10};
|
|
config.xaxis = {min: 0, max: 10};
|
|
$.plot($('#the_graph'), [data], config);
|
|
});
|
|
</script>
|
|
<p>Oh look a graph</p>
|
|
<div id="the_graph" style="width:100%;height:200px"></div>
|
|
<p>That's the graph</p>
|
|
<img src="test.png" />
|
|
</article>
|
|
|