Skip to content

How to hide the axis name #637

Closed Answered by ennerf
joehei asked this question in Q&A
Nov 9, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can add another CSS class to the axis, e.g.,

DefaultNumericAxis xAxis = ...;
xAxis.getStyleClass().add("reduced-x-axis")
.reduced-x-axis .axis-tick-label {
  visibility: visible;
  -fx-font-family: "System";
  -fx-font-size:9;
}

.reduced-x-axis .axis-label {
  visibility: hidden;
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ennerf
Comment options

Answer selected by joehei
@joehei
Comment options

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