Skip to content

XYChart with scaled time Axis #1179

Answered by williaster
shockhs asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @EsaxCO, in @visx/xychart you shouldn't be passing/computing scale to the Axis component yourself (only if you are separately using the @visx/axis packages. XYChart computes the scales based on child series data, and scales are determined by the xScale/yScale config you pass the XYChart component itself. You can check the https://airbnb.io/visx/xychart codesandbox for implementation details. All scale config maps to @visx/scale package's config.

Replies: 2 comments 1 reply

Comment options

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

Answer selected by shockhs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants