Skip to content

Commit dee48a9

Browse files
authored
Merge pull request #34 from VectorInstitute/fix_velocity_chart_interp
Fix interpolation of velocity chart
2 parents f42abcd + 73f3387 commit dee48a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dashboard/components/pr-velocity-chart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default function PRVelocityChart({ prSummaries }: PRVelocityChartProps) {
164164

165165
<div className="h-80">
166166
<ResponsiveContainer width="100%" height="100%">
167-
<AreaChart data={chartData}>
167+
<AreaChart data={chartData} margin={{ top: 5, right: 20, left: 0, bottom: 5 }}>
168168
<defs>
169169
<linearGradient id="colorAutoMerged" x1="0" y1="0" x2="0" y2="1">
170170
<stop offset="5%" stopColor={VECTOR_COLORS.turquoise} stopOpacity={0.8} />
@@ -205,7 +205,7 @@ export default function PRVelocityChart({ prSummaries }: PRVelocityChartProps) {
205205
<Tooltip {...CHART_CONFIG.tooltip} />
206206
<Legend {...CHART_CONFIG.legend} />
207207
<Area
208-
type="monotone"
208+
type="linear"
209209
dataKey="autoMerged"
210210
stackId="1"
211211
stroke={VECTOR_COLORS.turquoise}
@@ -214,7 +214,7 @@ export default function PRVelocityChart({ prSummaries }: PRVelocityChartProps) {
214214
name="Auto-merged"
215215
/>
216216
<Area
217-
type="monotone"
217+
type="linear"
218218
dataKey="botFixed"
219219
stackId="1"
220220
stroke={VECTOR_COLORS.violet}

0 commit comments

Comments
 (0)