Skip to content

Commit 0bc321f

Browse files
committed
Fix time format
1 parent de38e72 commit 0bc321f

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

.idea/workspace.xml

+30-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/detailOnDemand.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function createTableTooltip(wsTooltipDiv, info){
5353
})
5454
.enter()
5555
.append("td")
56-
.text(d => d.column === "time"? formatTimeLegend(d.value):d.value);
56+
.text(d => d.column === "time"? formatTimeDetailBox(d.value):d.value);
5757
}
5858

5959
function highlight(info, wsData, timestep) {

js/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const streamStepUnit = 0.5; // half hour
55
const formatTimeLegend = d3.timeFormat("%B %d, %-I:%M:%S %p");
66
// const formatTimeReadData = d3.timeFormat("%Y %B %d %-I%p");
77
const formatTimeReadData = d3.timeFormat("%-m/%-d %-I%p");
8+
const formatTimeDetailBox = d3.timeFormat("%B %d, %-I:%M %p");
89
const topics = ["message", "location"];
910
const topicColor = ["#919191", "#770000"];
1011
const margin = {top: 30, right: 20, bottom: 50, left: 50},

0 commit comments

Comments
 (0)