1
0
Fork 0
This repository has been archived on 2024-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Umweltdatenmessung/Webinterface/dygraphs.html

92 lines
3.6 KiB
HTML
Raw Normal View History

2014-01-17 16:23:33 +01:00
<!DOCTYPE html>
<!-- saved from url=(0053)http://lukaswiki.onpw.de/rasp/webseiten/dygraphs.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<script type="text/javascript" src="./dygraph-combined.js"></script><style type="text/css"></style>
<style type="text/css">
#graphdiv {
position: absolute;
left: 10px;
right: 10px;
top: 50px;
bottom: 50px;
2014-01-17 16:23:33 +01:00
}
#auswahl {
position: absolute;
bottom: 10px;
}
2014-01-17 16:23:33 +01:00
</style>
</head>
<body>
<div id="graphdiv"></div>
<div id="Legende"></div>
<span id="auswahl">
<input type=checkbox id="0" checked onClick="change(this)">
<label for="0" style="color: #D4AE0B;font-weight:bold">Innentemperatur</label>
<input type=checkbox id="1" checked onClick="change(this)">
<label for="1" style="color: red;font-weight:bold">Gerätetemperatur 1</label>
<input type=checkbox id="2" checked onClick="change(this)">
<label for="2" style="color: #0000FF;font-weight:bold">Außentemperatur</label>
<input type=checkbox id="3" onClick="change(this)">
<label for="3" style="color: red;font-weight:bold">Gerätetemperatur 2</label>
<input type=checkbox id="4" onClick="change(this)">
<label for="4" style="color: #00A6A6;font-weight:bold">Temperatur (Luft)</label>
<input type=checkbox id="5" checked onClick="change(this)">
<label for="5" style="color: #00FF00;font-weight:bold">Luftfeuchtigkeit</label>
<input type=checkbox id="6" checked onClick="change(this)">
<label for="6" style="color: black;font-weight:bold">Luftdruck</label>
<input type=checkbox id="7" checked onClick="change(this)">
<label for="7" style="color: #00A6A6;font-weight:bold">Temperatur (Druck)</label>
<input type=checkbox id="8" onClick="change(this)">
<label for="8" style="color: orange;font-weight:bold">Prozessor</label>
2014-02-22 10:51:50 +01:00
<input type=checkbox id="9" onClick="change(this)">
<label for="9" style="color: #6E3C0B;font-weight:bold">Qualität</label>
</span>
2014-01-17 16:23:33 +01:00
<script type="text/javascript">
2014-01-17 20:34:05 +01:00
g = new Dygraph(
2014-01-17 16:23:33 +01:00
document.getElementById("graphdiv"),
"dygraph.csv", // path to CSV file
{ showRoller: true, //Möglichkeit zum Runden anzeigen
animatedZooms: true,
// dateWindow: [ Date.parse("2012/09/29 12:00:00"),Date.parse("2013/11/10 12:00:00") ], //Start- und Endzeitraum
2014-02-22 10:51:50 +01:00
labels: ["Zeit", "Innentemperatur", "Gerätetemperatur 1", "Außentemperatur", "Gerätetemperatur 2", "Temperatur (Luft)", "Luftfeuchtigkeit", "Luftdruck", "Temperatur (Druck)", "Prozessor", "Qualität"],
2014-01-17 16:23:33 +01:00
labelsDiv: document.getElementById("Legende"), //Legende in einem bestimmten DIV anzeigen
// 'Luftfeuchtigkeit': { //eigene y-Achse für Luftfeuchtigkeit
// axis: { valueRange: [1, 99],
// independentTicks: true
// }
// },
2014-02-22 10:51:50 +01:00
'Luftdruck': { //eigene y-Achse für Luftdruck
axis: { independentTicks: true
2014-01-17 16:23:33 +01:00
}
},
2014-02-22 10:51:50 +01:00
'Qualität': {
axis: 'Luftdruck'
},
2014-01-17 16:23:33 +01:00
ylabel: 'Temperatur (°C)',
2014-02-22 10:51:50 +01:00
2014-01-26 15:47:52 +01:00
y2label: 'Luftdruck (hPa)',
2014-02-22 10:51:50 +01:00
colors: [ "#D4AE0B", "red", "#0000FF", "red", "#00A6A6", "#00FF00", "black", "#00A6A6", "orange", "#6E3C0B" ],
2014-02-16 14:07:09 +01:00
strokeWidth: 3, // Liniendicke
rollPeriod: 10, // Runden standardmäßig auf 10 setzen
2014-02-22 10:51:50 +01:00
visibility: [true, true, true, false, false, true, true, true, false, false]
// highlightSeriesOpts: {
// strokeWidth: 5,
// strokeBorderWidth: 1,
// }
2014-01-17 20:34:05 +01:00
// showRangeSelector: true, //Auswahlzeile anzeigen
// rangeSelectorHeight: 80
2014-01-17 16:23:33 +01:00
} // options
);
function change(el) {
g.setVisibility(el.id, el.checked);
}
2014-01-17 16:23:33 +01:00
</script>
2014-01-17 20:34:05 +01:00
</body>
</html>