We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
Hi @thienanle thanks for checking out vx!
<LinePath /> accepts a defined prop which is a function which defaults to d => y(d) && x(d): https://github.com/hshoff/vx/blob/master/packages/vx-shape/src/shapes/LinePath.js#L27 in this case y(d) returns 0 which evaluates to false in javascript
<LinePath />
defined
d => y(d) && x(d)
y(d)
0
false
If you pass in defined={d => true} it should work.
defined={d => true}
Maybe this is a bad default and we should match the d3 default of () => true: https://github.com/d3/d3-shape#line_defined
d3
() => true
Sorry, something went wrong.
@hshoff thanks for making VX!
Yes I'd agree matching D3's default would be better, but this works for me for now. Thanks for the fast response.
Will update it in the v0.0.131 release. Tracking here #100
No branches or pull requests
The text was updated successfully, but these errors were encountered: