fil commited on
Commit
371250e
1 Parent(s): 2b6207d

fix x axis

Browse files
Files changed (1) hide show
  1. docs/components/timeline.js +1 -1
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}),