FormidableLabs / FormidableLabs/victory

Typescript 5.2.2 issue in VictoryLineBase

Open
#2,639 3 comments 1 reaction 2 assignees Claimed by @scottrippey View on GitHub
Issue: Accepted Type: Bug :bug: Type: TypeScript
Dominant language
TypeScript
Stars
11.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
image

Code in question:
```
({
x: year,
y: cost,
}))}
style={{
data: {
stroke: CHART_COLORS[0],
strokeWidth: ({ active }) => (active ? 6 : 4),
strokeDasharray: "12",
},
labels: { fill: CHART_COLORS[0] },
}}
/>
```

**Victory version**
Latest

**Code Sandbox link**

**To Reproduce**
Steps to reproduce the behavior:
1. Use Victory Line Chart with TS 5.2.2

**Expected behavior**
No error like in previous version of TS

**Screenshots**
Above

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.