Skip to content

Commit c1a8371

Browse files
committed
fix: chart line
1 parent 7086c9d commit c1a8371

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/MMM-Linky.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Module.register("MMM-Linky", {
313313
display: displayLegend(),
314314
labels: { color: "white" }
315315
},
316-
datalabels: this.config.valuebar === 1
316+
datalabels: this.config.valuebar === 1 && chartType !== "line"
317317
? {
318318
color: this.config.valuebartextcolor === 1 ? "white" : "black",
319319
anchor: "center",
@@ -347,12 +347,6 @@ Module.register("MMM-Linky", {
347347
x: {
348348
ticks: { color: "#fff" }
349349
}
350-
},
351-
elements: {
352-
point: {
353-
radius: 1,
354-
pointStyle: false
355-
}
356350
}
357351
}
358352
});

src/components/chart.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class CHART {
4141
backgroundColor: colors[index],
4242
borderColor: colors[index].replace("0.8", "1"),
4343
borderWidth: type.includes("Curve") ? 3 : 1,
44-
tension: 0.4
44+
tension: 0.4,
45+
pointRadius: 0,
46+
pointStyle: false
4547
});
4648
index++;
4749
}

0 commit comments

Comments
 (0)