Skip to content

Commit 0d74a86

Browse files
committed
require at least 6 months of data for line chart
1 parent 2d9ec87 commit 0d74a86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/popularity-chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class PopularityChart extends HTMLElement {
187187
const textColor = style.getPropertyValue("--bs-body-color");
188188
const gridColor = style.getPropertyValue("--bs-border-color");
189189

190-
if (data.labels.length < 3) {
190+
if (data.labels.length < 6) {
191191
this.drawBarChart(canvas, data, textColor, gridColor);
192192
} else {
193193
this.drawLineChart(canvas, data, textColor, gridColor);

0 commit comments

Comments
 (0)