I have a JSON file that looks like that:
EDIT: I am using dates as keys, not integers as I have previously typed.
"2005-12-01": 120,
"2005-10-01": 32,
Now I would need to use the first column as the X axis and the other column as the Y axis. In the examples, they refer to the value by the element name, like:
const line = d3.line()
.x(d => x(d.date))
.y(d => y(d.value));
which I cannot do here.