Skip to content
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

fix(#9430): Use dynamic date format for axis with chronological timeUnit (timeUnit with year) #9431

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kanitw
Copy link
Member

@kanitw kanitw commented Sep 11, 2024

PR Description

Using timeUnitSpecifier isn't a good idea for axis. Vega's default is actually better.

image

@kanitw kanitw requested a review from a team as a code owner September 11, 2024 02:08
@kanitw kanitw marked this pull request as draft September 11, 2024 02:08
"format": {
"signal": "timeUnitSpecifier([\"year\",\"month\",\"date\",\"hours\",\"minutes\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"})"
},
"format": {},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better remove labelAngle now that we don't need it anymore.

"format": {
"signal": "timeUnitSpecifier([\"year\",\"month\",\"date\",\"hours\",\"minutes\"], {\"year-month\":\"%b %Y \",\"year-month-date\":\"%b %d, %Y \"})"
},
"format": {},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better remove labelAngle now that we don't need it anymore.

Copy link

cloudflare-workers-and-pages bot commented Oct 10, 2024

Deploying vega-lite with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6c27ff9
Status: ✅  Deploy successful!
Preview URL: https://afca2299.vega-lite.pages.dev
Branch Preview URL: https://kw-9430-timeunit.vega-lite.pages.dev

View logs

@kanitw kanitw changed the title fix(#9430): improve format for axis with chronological timeUnit (timeUnit with year), by using Vega's default fix(#9430): Use dynamic date format for axis with chronological timeUnit (timeUnit with year) Oct 11, 2024
@kanitw
Copy link
Member Author

kanitw commented Oct 11, 2024

TODO: let's also handle categorical -- we should keep the old behavior for categorical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant