Skip to content

Commit 34c6066

Browse files
committed
fix clipping issue
1 parent 558a29c commit 34c6066

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/public/viz-guardrails/LineChart.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ export function LineChart({
12551255
/>
12561256
</g>
12571257

1258-
<svg key="control_lines" style={{ width: `${width}px` }}>
1258+
<g key="control_lines">
12591259
{superimposeDatapoints?.map((x) => (
12601260
<g key={`${x.country}_g`}>
12611261
<path
@@ -1269,9 +1269,9 @@ export function LineChart({
12691269
/>
12701270
</g>
12711271
))}
1272-
</svg>
1272+
</g>
12731273

1274-
<svg key="control_bands" style={{ width: `${width}px` }}>
1274+
<g key="control_bands">
12751275
{superimposeSummary ? (
12761276
<g key="summary_g">
12771277
<path
@@ -1285,9 +1285,9 @@ export function LineChart({
12851285
/>
12861286
</g>
12871287
) : null}
1288-
</svg>
1288+
</g>
12891289

1290-
<svg key="lines" style={{ width: `${width}px` }}>
1290+
<g key="lines">
12911291
{linePaths?.map((x) => (
12921292
<g key={`${x.country}_g`}>
12931293
<path
@@ -1300,7 +1300,7 @@ export function LineChart({
13001300
/>
13011301
</g>
13021302
))}
1303-
</svg>
1303+
</g>
13041304
{medianLinePath && (
13051305
<>
13061306
<path

0 commit comments

Comments
 (0)