mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Merge pull request #221 from chakflying/patch-1
Fix: Improve Chart axis, use 24Hr format
This commit is contained in:
commit
e257fa7b2d
1 changed files with 10 additions and 3 deletions
|
@ -52,12 +52,19 @@ export default {
|
||||||
x: {
|
x: {
|
||||||
type: "time",
|
type: "time",
|
||||||
time: {
|
time: {
|
||||||
unit: "minute",
|
minUnit: "minute",
|
||||||
|
round: "second",
|
||||||
|
tooltipFormat: "YYYY-MM-DD HH:mm:ss",
|
||||||
|
displayFormats: {
|
||||||
|
minute: "HH:mm",
|
||||||
|
hour: "MM-DD HH:mm",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
ticks: {
|
ticks: {
|
||||||
maxRotation: 0,
|
maxRotation: 0,
|
||||||
autoSkipPadding: 10,
|
autoSkipPadding: 30,
|
||||||
},
|
},
|
||||||
|
bounds: "ticks",
|
||||||
grid: {
|
grid: {
|
||||||
color: this.$root.theme === "light" ? "rgba(0,0,0,0.1)" : "rgba(255,255,255,0.1)",
|
color: this.$root.theme === "light" ? "rgba(0,0,0,0.1)" : "rgba(255,255,255,0.1)",
|
||||||
},
|
},
|
||||||
|
@ -65,7 +72,7 @@ export default {
|
||||||
y: {
|
y: {
|
||||||
title: {
|
title: {
|
||||||
display: true,
|
display: true,
|
||||||
text: "Response Time (ms)",
|
text: "Resp. Time (ms)",
|
||||||
},
|
},
|
||||||
offset: false,
|
offset: false,
|
||||||
grid: {
|
grid: {
|
||||||
|
|
Loading…
Reference in a new issue