diff --git a/ts/src/stats/reviews.ts b/ts/src/stats/reviews.ts index 42ca2b275..b89e719d7 100644 --- a/ts/src/stats/reviews.ts +++ b/ts/src/stats/reviews.ts @@ -139,6 +139,8 @@ export function renderReviews( const desiredBars = Math.min(70, Math.abs(xMin!)); const x = scaleLinear().domain([xMin!, xMax]).nice(desiredBars); + x.domain([x.domain()[0], xMax]); + const sourceMap = showTime ? sourceData.reviewTime : sourceData.reviewCount; const bins = histogram() .value((m) => { @@ -347,10 +349,6 @@ export function renderReviews( .attr("height", () => y(0) - y(yMax!)) .on("mousemove", function (this: any, d: any, idx) { const [x, y] = mouse(document.body); - if (d.x0! >= 0) { - // don't show 'in x days' at the end of the graph - return; - } showTooltip(tooltipText(d, areaData[idx + 1]), x, y); }) .on("mouseout", hideTooltip);