Cannabis Freedom Index

Changelog 8323837

more history (2)

66 history entries added6 history entries removed1 file of code, design or docs +1,054 −382 lines

History changes.yaml

Added 66

Removed 6

Code, design and documents 1 file

src/components/AverageChart.astro +2 −2
@@ -1,5 +1,5 @@
 ---
 // World average score over time: a step line that moves at each recorded change.
-// Two views are rendered, the whole history and the last ten years; a switch shows one of them.
+// Two views are rendered, the whole history and the last fifteen years; a switch shows one of them.
 // The plot is a stretched SVG; labels and markers are HTML so they stay readable at any width.
 import { averageHistory, formatDate, dateTime, lastUpdated } from "../lib/countries.js";
@@ -45,5 +45,5 @@ function view(id, label, startYear) {
 const views = [
   view("all", "All", 1900), // a few bans are older; they are already counted in the starting value
-  view("10y", "Last 10 years", endYear - 10),
+  view("15y", "Last 15 years", endYear - 15),
 ];
 ---

    ↑↓ to move, ↵ to open.