Skip to content

Commit 9861d94

Browse files
committed
Use 24-hour time format (HH:mm:ss) to match timeline output
1 parent 3883708 commit 9861d94

7 files changed

Lines changed: 75 additions & 19 deletions

File tree

dist/main/index.js

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sc/index.js

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sc/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/statCollector.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ async function getLineGraph(options: LineGraphOptions): Promise<GraphResponse> {
375375
xAxes: [
376376
{
377377
type: 'time',
378+
time: {
379+
displayFormats: {
380+
second: 'HH:mm:ss',
381+
minute: 'HH:mm:ss',
382+
hour: 'HH:mm'
383+
}
384+
},
378385
scaleLabel: {
379386
display: true,
380387
labelString: 'Time',
@@ -408,8 +415,8 @@ async function getLineGraph(options: LineGraphOptions): Promise<GraphResponse> {
408415
}
409416

410417
const payload = {
411-
width: 1000,
412-
height: 500,
418+
width: 800,
419+
height: 400,
413420
chart: chartConfig
414421
}
415422

@@ -452,6 +459,13 @@ async function getStackedAreaGraph(
452459
xAxes: [
453460
{
454461
type: 'time',
462+
time: {
463+
displayFormats: {
464+
second: 'HH:mm:ss',
465+
minute: 'HH:mm:ss',
466+
hour: 'HH:mm'
467+
}
468+
},
455469
scaleLabel: {
456470
display: true,
457471
labelString: 'Time',
@@ -486,8 +500,8 @@ async function getStackedAreaGraph(
486500
}
487501

488502
const payload = {
489-
width: 1000,
490-
height: 500,
503+
width: 800,
504+
height: 400,
491505
chart: chartConfig
492506
}
493507

0 commit comments

Comments
 (0)