Skip to content

24 Hour timeformat #1150

Answered by williaster
JunChatani asked this question in Q&A
Apr 8, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @JunChatani 👋 thanks for checking out visx. I think what you're looking for here is the @visx/axis tickFormat prop (see the docs).

In the axis demo, you can see that we use this to change how we format a specific tick. In your case you would use the function to format your Date (or string or number depending on your raw data format for the Axis).

Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JunChatani
Comment options

Answer selected by JunChatani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants