Skip to content

Disabling/Hiding Y-axis in XYChart #504

Answered by wirew0rm
clisztian asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, welcome to ChartFx and thanks for your kind words and showing what you are doing with our library.

Due to the way the chart is structured at the moment, there are some problems with the way you want to use it:

  • the axes are not only drawn, they are also used to compute the correct sceen position, so they need to be added to the chart (if you provide an axis to a renderer, the renderer will make sure that the axis is added to the current chart. And since axes are scene graph nodes which can only be in the same scene once, you cannot use the same axis for multiple charts without changing the scene graph topology of chartfx). The width of your y axis could of course be zero, but at the …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by clisztian
Comment options

You must be logged in to vote
0 replies
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