From 9442c3fa05c197e6f2d5af6632abae4b1ad68351 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 24 Aug 2021 23:34:48 +0800 Subject: [PATCH] Fix: Fix chart bars to be full width --- src/components/PingChart.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PingChart.vue b/src/components/PingChart.vue index 53a837994..584664b99 100644 --- a/src/components/PingChart.vue +++ b/src/components/PingChart.vue @@ -57,9 +57,6 @@ export default { point: { radius: 0, }, - bar: { - barThickness: "flex", - } }, scales: { x: { @@ -77,9 +74,9 @@ export default { maxRotation: 0, autoSkipPadding: 30, }, - bounds: "ticks", grid: { color: this.$root.theme === "light" ? "rgba(0,0,0,0.1)" : "rgba(255,255,255,0.1)", + offset: false, }, }, y: { @@ -163,6 +160,9 @@ export default { borderColor: "#00000000", backgroundColor: "#DC354568", yAxisID: "y1", + barThickness: "flex", + barPercentage: 1, + categoryPercentage: 1, }, ], };