Skip to content

Commit

Permalink
Only use integers
Browse files Browse the repository at this point in the history
Refs #13
  • Loading branch information
thewilkybarkid committed Jun 28, 2024
1 parent 77634fb commit f2a034c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function requestsByLanguageTimeline({ width } = {}) {
legend: true,
tickFormat: languageName,
},
y: { grid: true, label: 'Requests' },
y: { grid: true, label: 'Requests', tickFormat: Math.floor, interval: 1 },
x: { label: '', domain: [d3.utcSunday.floor(firstRequest), d3.utcSunday.ceil(now)] },
marks: [
Plot.rectY(
Expand Down Expand Up @@ -121,7 +121,7 @@ function requestsByFieldTimeline({ width } = {}) {
legend: true,
tickFormat: languageName,
},
x: { grid: true, label: 'Requests' },
x: { grid: true, label: 'Requests', tickFormat: Math.floor, interval: 1 },
y: { label: '' },
marks: [
Plot.barX(
Expand Down

0 comments on commit f2a034c

Please sign in to comment.