Skip to content

Commit

Permalink
limite the number of ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh committed May 23, 2022
1 parent 1d4acd0 commit a087451
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ const ComplianceTrendChart = ({ trend }: { trend: PostureTrend[] }) => {
xAccessor={'timestamp'}
yAccessors={['postureScore']}
/>
<Axis id="bottom-axis" position="bottom" tickFormat={timeFormatter(niceTimeFormatByDay(2))} />
<Axis
id="bottom-axis"
position="bottom"
tickFormat={timeFormatter(niceTimeFormatByDay(2))}
ticks={4}
/>
<Axis
ticks={3}
id="left-axis"
Expand Down

0 comments on commit a087451

Please sign in to comment.