[charts] Use dedicated shape for line charts without showMark#21725
[charts] Use dedicated shape for line charts without showMark#21725alexfauquette wants to merge 3 commits intomui:masterfrom
showMark#21725Conversation
|
Deploy preview: https://deploy-preview-21725--material-ui-x.netlify.app/ Bundle size report
|
Why though? Like, if the series you are looking at has no marks, you would want to have any way to relate which line is which. You can try to follow the lines, but it could be ambiguous in some points |
Merging this PR will improve performance by 8.14%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | ScatterChartPro with big data amount (single renderer) |
476 ms | 440.1 ms | +8.14% |
Comparing alexfauquette:refine-shapes (7fabcc0) with master (1fdb8c3)1
Footnotes
@JCQuintas I don't get if you're talking about the first point (different shapes) or the second (shapes are too large)
Before/After
Related topicShowing only one mark per series at the end |
|
Ok, regarding the shape yes, they don't need to be large. My point is more that it should probably use different shapes though. |
To me it looks off. When I see different shapes, my first reaction is "Ok, this cross probably mean something". And then there is not extra info about it. Whereas circle has the advantage to be "neutral" |
Could be. I don't think it is necessary, more of a nice to have. It should at least respect the |


Follow up on #21713
When using axis highlight with a line chart that does not have marks, it feels weird to see large shape for each series