diff --git a/src/lib/components/chart.svelte b/src/lib/components/chart.svelte
index 83da75c..71fcf3f 100644
--- a/src/lib/components/chart.svelte
+++ b/src/lib/components/chart.svelte
@@ -21,6 +21,8 @@
chart: {
type: "area",
backgroundColor: "transparent",
+ height: 320,
+ spacing: [12, 8, 8, 8],
zooming: {
type: "x",
},
@@ -116,6 +118,10 @@
shared: true,
shadow: false,
formatter: function (this: any): any {
+ if (!this.points?.length) {
+ return "";
+ }
+
return `${moment(
this.points[0].x
).format("YYYY-MM-DD HH:mm:ss")}
${this.points
@@ -134,6 +140,7 @@
plotOptions: {
series: {
threshold: null,
+ connectNulls: false,
},
area: {
lineColor: "#2662D9",
@@ -165,6 +172,8 @@
text: title,
style: {
color: "white",
+ fontSize: "16px",
+ fontWeight: "600",
},
},
series: series.map((series, index) =>
@@ -195,7 +204,7 @@
{#if browser}
-