Skip to content

Instantly share code, notes, and snippets.

View MaciejDobrowolski's full-sized avatar

Maciej Dobrowolski MaciejDobrowolski

  • Warsaw, Poland
View GitHub Profile
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
@MaciejDobrowolski
MaciejDobrowolski / MultipleAxesLineChart.java
Last active February 17, 2024 20:20
This is try to implement multiple axes line chart in JavaFX. Being little cumbersome to use, it allows you to have a number of axes with series "binded" to single LineChart. The main restrictions are: All axes should have the same width (it is assumed to be 60px). Any additional axes will appear at the right side of LineChart. You should know wh…
package macko;
import javafx.beans.Observable;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.geometry.Side;
import javafx.scene.Cursor;
import javafx.scene.Node;
import javafx.scene.chart.Axis;