Skip to content

Commit

Permalink
debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sigvevermandere committed Nov 21, 2019
1 parent 174bd0a commit 9aa9f26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions demo/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,13 @@ svg.append("path")
function parseDates(data, fromDate, toDate) {
data.forEach(function (d) {
if (d.resultTime[d.resultTime.length - 1] === 'Z') {
console.log("[LOG] graphside fromDate: " + fromDate);
console.log("[LOG] resulttime: " + new Date(d.resultTime));
console.log("[LOG] graphside toDate: " + toDate);
let resultDate = new Date(d.resultTime);
//resultDate = resultDate.setHours(resultDate.getHours() - 1);
if (resultDate <= toDate && resultDate >= fromDate) {
console.log("conversion");
d.resultTime = parseTime(d.resultTime);
}
}
Expand Down
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="bundle.js"></script>
<script src="../../Clientside/dist/bundle.js"></script>
<script src="https://cdnjs.com/libraries/moment.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>

<input type="datetime-local" id="start" value="2019-11-08T00:00">
<input type="datetime-local" id="end" value="2019-11-09T00:00">
<input type="datetime-local" id="start" value="2019-11-09T10:00">
<input type="datetime-local" id="end" value="2019-11-09T20:00">
<select id="metrics">
<option value="http://example.org/data/airquality.no2::number">no2</option>
<option value="http://example.org/data/airquality.o3::number">o3</option>
Expand Down

0 comments on commit 9aa9f26

Please sign in to comment.