fix: line chart x-axis showing full dates instead of day numbers#18923
fix: line chart x-axis showing full dates instead of day numbers#18923lightdash-bot wants to merge 1 commit intomainfrom
Conversation
|
Your preview environment pr-18923 has been deployed. Preview environment endpoints are available at: |
Preview Environment🌐 URL: https://lightdash-preview-pr-18923.lightdash.okteto.dev 📋 Logs: View in GCP Console 🔧 SSH: |
stevelikesmusic
left a comment
There was a problem hiding this comment.
@torimwhaley how do we test this? Could you share a before/after screenshot to know how this affects the UI? I've tried testing in analytics and see the full date:
But I'm probably using the wrong chart config for what you're after?
|
@stevelikesmusic I will show you what I mean! I can't access the preview anymore, I get a 503 error. Are you able to refresh the env? Previously I reproduced the error, and it added really funky behavior when just looking at one day (showing the day hours for some reason). The tooltip shows the date correctly, but not the axis label (we would expect to see the full date on the axis "2025-11-13") |
|
The previews are fickle. They'll be up an hour or so and then get "put to sleep". They start up again when you click the Preview button. Really, the error message should say something about starting up the environment again rather than 503. It takes ~1 minute for everything to get running again. |
Changed the DAY time interval axis label formatter to return null instead of a custom formatter that only displayed day numbers. This allows echarts to use its default date formatting, which displays full dates (e.g., '12/09/2025' instead of just '9'). This aligns with industry-standard visualization tools and improves data clarity by providing complete temporal context on the x-axis.
Fixes: #18952