From fd0383cbe0b1324a27ea94aaa78dc9e53c13dc0c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Jul 2020 11:53:20 +1000 Subject: [PATCH] slightly increase x ticks --- ts/src/stats/histogram-graph.ts | 2 +- ts/src/stats/reviews.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/src/stats/histogram-graph.ts b/ts/src/stats/histogram-graph.ts index be86d1a3b..d37c3d336 100644 --- a/ts/src/stats/histogram-graph.ts +++ b/ts/src/stats/histogram-graph.ts @@ -50,7 +50,7 @@ export function histogramGraph( const x = data.scale.range([bounds.marginLeft, bounds.width - bounds.marginRight]); svg.select(".x-ticks") .transition(trans) - .call(axisBottom(x).ticks(6).tickSizeOuter(0)); + .call(axisBottom(x).ticks(7).tickSizeOuter(0)); // y scale diff --git a/ts/src/stats/reviews.ts b/ts/src/stats/reviews.ts index a9102fbb0..3a5097365 100644 --- a/ts/src/stats/reviews.ts +++ b/ts/src/stats/reviews.ts @@ -160,7 +160,7 @@ export function renderReviews( x.range([bounds.marginLeft, bounds.width - bounds.marginRight]); svg.select(".x-ticks") .transition(trans) - .call(axisBottom(x).ticks(6).tickSizeOuter(0)); + .call(axisBottom(x).ticks(7).tickSizeOuter(0)); // y scale