Skip to content

Commit 42bae25

Browse files
committed
fix: hardcoded path color from library
1 parent 9aec3f6 commit 42bae25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/LineChart/InteractiveLineChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const InteractiveLineChart: React.FC<LineChartProps<false>> = ({
7878
<GestureDetector gesture={gestures}>
7979
<View style={styles.container} onLayout={onLayout}>
8080
<Canvas style={{ height, width }}>
81-
<Path style="stroke" path={path} strokeWidth={strokeWidth}>
81+
<Path style="stroke" path={path} strokeWidth={strokeWidth} color="transparent">
8282
{PathFill && PathFill({ width, height, strokeWidth })}
8383
</Path>
8484
{!hideCursor ? (

src/components/LineChart/StaticLineChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const StaticLineChart: React.FC<LineChartProps<true>> = ({
4646
)}
4747
<View style={styles.container} onLayout={onLayout}>
4848
<Canvas style={{ height, width }}>
49-
<Path style="stroke" path={path} strokeWidth={strokeWidth}>
49+
<Path style="stroke" path={path} strokeWidth={strokeWidth} color="transparent">
5050
{PathFill && PathFill({ width, height, strokeWidth })}
5151
</Path>
5252
</Canvas>

0 commit comments

Comments
 (0)