Package javafx.scene.chart

Examples of javafx.scene.chart.LineChart


    private void initialize() {
        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, yUnit, null));
        final LineChart chart = new LineChart(xAxis, yAxis);
        chart.setLegendVisible(false);
        chart.setTitle(title);
        yAxis.setLabel(yAxisTitle);
        yAxis.setForceZeroInRange(true);
        this.series = new XYChart.Series<String, Number>();
        chart.getData().add(series);
        this.chart = chart;
        this.chart.setId("snapshotChart");
        deactivate();
    }
View Full Code Here

TOP

Related Classes of javafx.scene.chart.LineChart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.