fix(site): plot every repo in the star history by default

The chart hid every series past rank 12 while the legend still listed
all of them, so the card claimed to show everything and drew a third of
it. Plot all series on load; the legend stays the way to hide the ones
you do not want, and hidden state still survives re-renders.
This commit is contained in:
tiennm99 committed 2026-09-11 15:46:29 +07:00
1 parent a99972438b
commit ff33c20ab6
1 file changed
+2 -2
+2 -2
View File
@@ -237,7 +237,7 @@
</div>
<div class="chartwrap"><canvas id="chart" role="img"
aria-label="Line chart of GitHub star history over time for the repositories listed in the table above."></canvas></div>
<p class="hint">Top 12 repos shown by default — click legend entries to toggle series. The tag filters and search above also filter the chart.</p>
<p class="hint">Every tracked repo is plotted — click legend entries to hide series. The tag filters and search above also filter the chart.</p>
</section>
<footer>
@@ -466,7 +466,7 @@
pointRadius: nPoints < 2 ? 3 : 0, // single snapshots need a visible dot
borderWidth: 2,
spanGaps: true,
hidden: r.key in hiddenState ? hiddenState[r.key] : i >= 12, // top 12 visible by default
hidden: hiddenState[r.key] ?? false, // every series plotted until the legend hides it
};
});
if (chart) chart.destroy();