-
Notifications
You must be signed in to change notification settings - Fork 128
style(xy): Update area and line chart style #2731
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
base: main
Are you sure you want to change the base?
Conversation
buildkite update vrt |
buildkite update vrt |
buildkite update vrt |
buildkite test this |
A detail that I noticed when we do NOT display dots: isolated data points are now represented with a white dot with stroke colored as the line. It might be better to keep as it was, a filled dot with no stroke The overall logic for isolated point is: they should be as similar as possible to the line, because they are basically a little point of that line isolated from the rest of the series |
Thank you @gvnmagni! Yes I checked that the isolated points actually inherit the normal point style. I'll proceed with the changes to decouple them. |
buildkite update vrt |
buildkite test this |
buildkite update vrt |
buildkite test this |
The update is looking good, thank you @andrimal for the effort! I'll write down a few details that I would love to check (either next release or next days, I'll check what we can do) because there are a few tiny pieces that I would love to improve, but these are NOT a blocker from my perspective
![]() |
Yes I agree on this. When re-introduced the transparent bigger point I used the original highlighter style with opacity: 0.5,
fill: ColorVariant.Series,
stroke: ColorVariant.None,
strokeWidth: 0,
radius: 5,
Until now, there wasn't a focused style for the dots. I introduced it now -> 7f63cee
This was actually not transparent. There was a dimmed point style applied to dimmed line/area charts. I changed the fill color from light gray to background base plain here -> 9484300 ![]() ![]() |
buildkite update vrt |
Looking good, I noticed this while playing around (#2752) but it is not a problem related to this specific PR, it already existed before all this |
✅ Successful Deployment (build#5226) - ada5e61 |
I believe this is connected: we are now showing all the dots in the highlighter, but they are sorted in a different way then the way its sorted in the rendered. Note the blue series is ontop of the light green one, when hovering the highlighter shows the light green on top of the blue one. I believe is a matter of aligning the rendered point to the actual series order. ![]() ![]() |
Hey @markov00 you are right, this is the other issue #1921 that I mentioned here and would be nice to handle as a fix! |
Summary
This PR updates the style of area and line charts.
Details
The updated style:
1.5px
0.2
1.5px
colors.backgroundBasePlain
backgroundBasePlain
0.2
Screenshots
Line Chart Screenshots
Light theme (Before):

Light theme (After):

Dark theme (Before):

Dark theme (After):

Area Chart Screenshots
Light theme (Before):

Light theme (After):

Dark theme (Before):

Dark theme (After):

Issues
fix #2721
Checklist
:xy
,:partition
):interactions
,:axis
)closes #123
,fixes #123
)packages/charts/src/index.ts
light
anddark
themes