fix: timing metric chart x-axis tick off
@@ -29,7 +29,7 @@ const TimingMetricChart: React.FC<Props> = ({ trial }: Props) => {
const range = scaleMax - scaleMin + 1;
const factor = findFactorOfNumber(range).reverse()
.find(factor => plotDim / factor > 35);
- return factor ? (plotDim / factor) : 35;
+ return factor ? Math.min(70, (plotDim / factor)) : 35;
},
},
{ label: 'Milliseconds' },
