Skip to content

Commit

Permalink
feat(gui): hide y axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Zmax0 committed Jun 6, 2024
1 parent 91cc296 commit 451e60e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public TrafficCounterLineChart(ObjectProperty<Client.Instance> instance) {
public LineChart<Number, Number> init() {
NumberAxis xAxis = new NumberAxis(0, WINDOW, WINDOW);
NumberAxis yAxis = new NumberAxis();
yAxis.setTickLabelsVisible(false);
yAxis.setTickMarkVisible(false);
yAxis.lookup(".axis-minor-tick-mark").setVisible(false);
LineChart<Number, Number> lineChart = new LineChart<>(xAxis, yAxis) {
@Override
protected void layoutPlotChildren() {
Expand Down

0 comments on commit 451e60e

Please sign in to comment.