Skip to content

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.

@cloudflare-workers-and-pages
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.

2 participants