feat: remove line element from scatter controller#10439
feat: remove line element from scatter controller#10439kurkle merged 6 commits intochartjs:masterfrom
Conversation
LeeLenaleee
left a comment
There was a problem hiding this comment.
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
LeeLenaleee
left a comment
There was a problem hiding this comment.
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 |
LeeLenaleee
left a comment
There was a problem hiding this comment.
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