How to remove legends in javafx line chart
I am trying to plot javafx bar graph using line chart. Each bar line is drawn using a vertical line drawn with two points and line symbol removed. There could be many series(Bar line) in my application but want to show only two legends only. Currently legends were shown as many series been added. Somehow i am able to show only two legends and hided others. But now problem exist with spaces used by hided legends. My current code is as below:- package graph; import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx