Skip to content

Commit 4f0a35f

Browse files
committed
Further implementation of flot based graphing for raster stats
1 parent a975f30 commit 4f0a35f

38 files changed

+17217
-0
lines changed

resources/html/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FILE(GLOB HTML_FILES *.*)
2+
3+
INSTALL(FILES ${HTML_FILES} DESTINATION ${QGIS_DATA_DIR}/resources/html)
4+

resources/html/chart.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<script language="javascript" type="text/javascript" src="../js/jquery.js"></script>
6+
<script language="javascript" type="text/javascript" src="../js/jquery.flot.js"></script>
7+
<!-- flot grow plugin: see http://jumware.com/Includes/jquery/Flot/Doc/JQuery.flot.grow.html -->
8+
<script language="javascript" type="text/javascript" src="../js/jquery.flot.grow.js"></script>
9+
</head>
10+
<body>
11+
<div id="chart"><h1>Histogram loading...</h1></div>
12+
<script id="source" language="javascript" type="text/javascript">
13+
var d = new Array();
14+
function replot()
15+
{
16+
var options = { series : {
17+
grow : { active : true },
18+
points : { show : true },
19+
grow : { stepMode : "maximum", steps: 120 },
20+
lines : { show : true }
21+
}
22+
};
23+
$.plot($("#chart"), d, options);
24+
}
25+
function addSeries( theSeries )
26+
{
27+
d.push( { data: theSeries } );
28+
replot();
29+
alert( theSeries );
30+
}
31+
$(function ()
32+
{
33+
$("#chart").height(0.9*$(window).height()).width(0.90*$(window).width()).css("margin-left","auto").css("margin-right", "auto");
34+
35+
});
36+
</script>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)