julien-c HF staff fil commited on
Commit
b5e0335
1 Parent(s): 2b6207d

fix x axis (#1)

Browse files

- fix x axis (371250ec7e9fe86e2de33d71d962e3b63368bb90)


Co-authored-by: Fil <fil@users.noreply.huggingface.co>

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}),