-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
feat: remove line element from scatter controller #10439
feat: remove line element from scatter controller #10439
Conversation
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.
Some weird animation behaviour. If you enable the showLine prop for Scatter Dataset 1
it will disable the animations of Scatter Dataset 2
. This dataset will pop in with showLine true and false
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.
I think it would be better to not make these helper functions public, this means they can not be changed easily since people might rely on them. But as long as we keep them private they can be changed more easily in the future. And we can always make them public but making them private needs to wait for a major release
Also if you make them private there is no type declaration needed for them.
@LeeLenaleee, thanks for your review. I made helper functions private. |
Hey folks! Is there anything else I need to do to approve this PR? |
I'm sorry, had little time because my graduation internship was comming to an end, I will look a or it tonight, should have time then |
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.
Noticed that when you set showLine to true in the options object itself it will throw an error:
https://codesandbox.io/s/peaceful-forest-ttcudi?file=/src/components/ScatterChart.ts
I'd like to explore the possibility to make the line element optional in the line controller. I'd think it would have smaller footprint overall, but am not sure. |
Needs a rebase still |
181e5d3
to
1215635
Compare
rebased |
@thabarbados it looks like the tests are consistently failing |
9418f97
fixed |
Noticing that v3.9.0 altered scatter plots that set line properties such as I realize support without Simple test case: {
type: 'scatter',
data: {
datasets: [{
data: [{x:1,y:1}, {x:2,y:2}],
backgroundColor: '#de000055',
fill: true,
}]
}
} |
Make scatter chart not require the lineElement #10242
You can check the build with changes here