-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new(xychart): add AnimatedLineSeries + tests #874
Conversation
6473ece
to
e882b46
Compare
{...lineProps} | ||
> | ||
{({ path }) => ( | ||
<PathComponent stroke={color} strokeWidth={2} {...lineProps} d={path(data) || ''} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything is the same in this file except we use the child render function here.
sorry I tried to git mv
and it didn't work in this UI view 💔
@@ -16,6 +16,6 @@ export default function getScaledValueFactory<Scale extends AxisScale, Datum>( | |||
(align === 'start' ? 0 : getScaleBandwidth(scale)) / (align === 'center' ? 2 : 1); | |||
return scaledValue + bandwidthOffset; | |||
} | |||
return NaN; | |||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is tricky. react-spring
barfs on NaN
, but all of the types expect number
not number | null
🤔
b388988
to
fe7d094
Compare
e882b46
to
4badb0d
Compare
Pull Request Test Coverage Report for Build 256
💛 - Coveralls |
1b12022
to
81044b8
Compare
TODO
master
when parent new(xychart): add Animated(BarSeries, BarStack, BarGroup) #873 is merged🚀 Enhancements
This PR adds an
AnimatedLineSeries
component. It factors out the previousLineSeries
=>BaseLineSeries
to power bothLineSeries
and theAnimatedLineSeries
.🏠 Internal
Adds tests for
Animated(LineSeries,BarSeries,BarStack,BarGroup)
components@kristw @techniq