Skip to content

Commit

Permalink
made ping graph resizable #10
Browse files Browse the repository at this point in the history
  • Loading branch information
fazalmajid committed Nov 1, 2020
1 parent 6b801b0 commit e9032df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
div#legend span.highlight {
background-color: #dddddd;
}
div#ping {
width: 95vw;
height: 50vh;
}
</style>
</head>
<body>
Expand Down
2 changes: 0 additions & 2 deletions initial.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ g = new Dygraph(
{{if (ne $i 0)}},{{end}}get_color({{- $i -}}, {{- $host_count -}} - 1)
{{- end}}],
title: "Ping time (ms)",
width: window.innerWidth * 0.95,
height: window.innerHeight / 2,
highlightCircleSize: 2,
strokeWidth: 1,
strokeBorderWidth: 1,
Expand Down
2 changes: 1 addition & 1 deletion statik.go

Large diffs are not rendered by default.

0 comments on commit e9032df

Please sign in to comment.