fake personal history

This commit is contained in:
2023-10-01 14:35:04 +02:00
parent 8a75ba4335
commit af81920a47
3 changed files with 34 additions and 5 deletions

View File

@ -43,10 +43,11 @@ import * as d3 from "https://cdn.jsdelivr.net/npm/d3@7/+esm";
const data = [
{ date: '2023-01-01', km: 5 },
{ date: '2023-02-01', km: 24 },
{ date: '2023-08-30', km: 1340 },
{%- for p in personal %}
{ date: '{{p.date}}', km: {{p.km}} },
{%- endfor %}
];
console.log(data);
const margin = { top: 20, right: 20, bottom: 50, left: 50 },
width = 960 - margin.left - margin.right,