/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.chart.*; import javafx.stage.Stage; /** * * @author akouznet */ public class Bug extends Application { /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } protected XYChart createChart() { final CategoryAxis xAxis = new CategoryAxis(); final NumberAxis yAxis = new NumberAxis(); final BubbleChart lc = new BubbleChart(xAxis,yAxis); XYChart.Series series = new XYChart.Series(); series.setName("Data Series 1"); series.getData().add(new XYChart.Data("2010", 150d)); series.getData().add(new XYChart.Data("2011", 30d)); series.getData().add(new XYChart.Data("2012", 62d)); lc.getData().add(series); return lc; } @Override public void start(Stage primaryStage) { Scene scene = new Scene(createChart()); primaryStage.setScene(scene); primaryStage.show(); // ScenicView.show(root); } }