Example usage for javafx.scene.chart PieChart setData

List of usage examples for javafx.scene.chart PieChart setData

Introduction

In this page you can find the example usage for javafx.scene.chart PieChart setData.

Prototype

public final void setData(ObservableList<Data> value) 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());
    primaryStage.setTitle("PieChart");

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);/*from  ww  w  . ja  va  2  s . co  m*/
    primaryStage.setScene(new Scene(root, 400, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());
    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);/*from   w w  w . java 2s .co  m*/
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);/* w  ww.ja  v  a2s  .c o m*/
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();

    pieChart.setStartAngle(5);
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    System.out.println(pieChart.dataProperty());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);/*from ww w.j a  va2  s .  c o m*/
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    System.out.println(pieChart.getData());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);//from w w  w .j  av a2s  .c  o m
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);//  ww w.  j  a  va2  s .  c om
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();

    pieChart.setClockwise(false);
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    System.out.println(pieChart.getLabelsVisible());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);/*from w ww .  j  a  v a  2s  . c o m*/
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    System.out.println(pieChart.clockwiseProperty());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);/*  w ww .j a v  a2s  .  c  om*/
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    System.out.println(pieChart.getLabelLineLength());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);//from w  ww .  j a  v  a  2s .c o m
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
}

From source file:Main.java

@Override
public void start(Stage primaryStage) {
    PieChart pieChart = new PieChart();
    pieChart.setData(getChartData());

    pieChart.setTitle("Title");
    pieChart.setLegendSide(Side.LEFT);//from w  ww  . j  ava  2  s.  c o  m
    pieChart.setClockwise(false);
    pieChart.setLabelsVisible(false);

    StackPane root = new StackPane();
    root.getChildren().add(pieChart);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();

    System.out.println(pieChart.startAngleProperty());
}