Skip to content

Limit line on XYChart #1167

Answered by williaster
shockhs asked this question in Q&A
Apr 15, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hey @EsaxCO 👋 thanks for checking out visx. Yes, there are a couple approaches for this. You can either use the Annotation/AnnotationLineSubject exported from @visx/xychart, or tap into the DataContext for access to the chart scales and roll your own. Here's a demo of both approaches, hope it helps!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@williaster
Comment options

@shockhs
Comment options

@noyg123
Comment options

@williaster
Comment options

@noyg123
Comment options

Answer selected by shockhs
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