fix x axis
#1
by
fil
- opened
docs/components/timeline.js
CHANGED
@@ -5,7 +5,7 @@ export function timeline(events, {width, height} = {}) {
|
|
5 |
width,
|
6 |
height,
|
7 |
marginTop: 30,
|
8 |
-
x: {nice: true, label: null, tickFormat: ""},
|
9 |
y: {axis: null},
|
10 |
marks: [
|
11 |
Plot.ruleX(events, {x: "year", y: "y", markerEnd: "dot", strokeWidth: 2.5}),
|
|
|
5 |
width,
|
6 |
height,
|
7 |
marginTop: 30,
|
8 |
+
x: {nice: true, label: null, tickFormat: "", interval: 1},
|
9 |
y: {axis: null},
|
10 |
marks: [
|
11 |
Plot.ruleX(events, {x: "year", y: "y", markerEnd: "dot", strokeWidth: 2.5}),
|