Tabnine Logo
NumberAxis.setLabel
Code IndexAdd Tabnine to your IDE (free)

How to use
setLabel
method
in
javafx.scene.chart.NumberAxis

Best Java code snippets using javafx.scene.chart.NumberAxis.setLabel (Showing top 6 results out of 315)

origin: tech.tablesaw/tablesaw-plot

static NumberAxis getNumberAxis(NumberColumn numberColumn) {
  final NumberAxis numberAxis = new NumberAxis();
  numberAxis.setLabel(numberColumn.name());
  return numberAxis;
}
origin: com.aquafx-project/aquafx

static Node createBubbleChart(boolean useRightTopAxis) {
  final Random RANDOM = new Random(29782198273l);
  NumberAxis xAxis = new NumberAxis();
  xAxis.setLabel("Product");
  NumberAxis yAxis = new NumberAxis();
  yAxis.setLabel("Number Bought/Sold");
  if (useRightTopAxis) {
    xAxis.setSide(Side.TOP);
    yAxis.setSide(Side.RIGHT);
  }
  ObservableList<BubbleChart.Series> bubbleChartData = FXCollections.observableArrayList();
  for (int s=0; s<8; s++) {
    ObservableList<BubbleChart.Data> seriesData = FXCollections.<BubbleChart.Data>observableArrayList();
    for (int d=0; d<(8*(RANDOM.nextDouble()*10)); d++) {
      seriesData.add(new XYChart.Data(100*RANDOM.nextDouble(), -50+(150*RANDOM.nextDouble()), 5+(10*RANDOM.nextDouble()) ));
    }
    bubbleChartData.add(new ScatterChart.Series("Product "+(s+1),seriesData));
  }
  return new BubbleChart(xAxis, yAxis, bubbleChartData);
}

origin: com.aquafx-project/aquafx

yAxis.setLabel("Units Sold");
ObservableList<BarChart.Series> barChartData = FXCollections.observableArrayList();
final double negative = stacked ? 0 : -500;
origin: com.nexitia.emaginplatform/emagin-jfxcore-demoapp-components

bc.setTitle("Summary");
xAxis.setLabel("Country");
yAxis.setLabel("Value");
origin: tech.tablesaw/tablesaw-plot

public static BarChart<String, Number> chart(
    String title,
    StringColumn x,
    NumberColumn y) {
  final CategoryAxis xAxis = new CategoryAxis();
  final NumberAxis yAxis = new NumberAxis();
  xAxis.setLabel(x.name());
  yAxis.setLabel(y.name());
  Table t = Table.create("", x, y);
  t = t.sortDescendingOn(y.name());
  final BarChart<String, Number> bar = new BarChart<>(xAxis, yAxis);
  bar.setTitle(title);
  List<XYChart.Data<String, Number>> d2 = new ArrayList<>(x.size());
  for (int i = 0; i < x.size(); i++) {
    d2.add(new XYChart.Data<>(t.stringColumn(0).get(i), t.nCol(1).get(i)));
  }
  XYChart.Series<String, Number> series1
      = new XYChart.Series<>(FXCollections.observableList(d2));
  series1.setName(y.name());
  bar.setLegendVisible(false);
  bar.setCategoryGap(0.0);
  bar.setBarGap(0.1);
  bar.setBackground(Background.EMPTY);
  bar.setVerticalGridLinesVisible(false);
  bar.getData().add(series1);
  return bar;
}
origin: com.aquafx-project/aquafx

xAxis.setTickLength(12.0f);
NumberAxis yAxis = new NumberAxis();
yAxis.setLabel("Y Values");
ObservableList<AreaChart.Series> areaChartData = FXCollections.observableArrayList(
    new AreaChart.Series("Series 1",FXCollections.observableArrayList(
javafx.scene.chartNumberAxissetLabel

Popular methods of NumberAxis

  • <init>
  • setAutoRanging
  • setLowerBound
  • setTickUnit
  • setUpperBound
  • setSide
  • getLowerBound
  • getUpperBound
  • prefHeight
  • prefWidth
  • requestAxisLayout
  • resize
  • requestAxisLayout,
  • resize,
  • setAnimated,
  • setLayoutX,
  • setLayoutY,
  • setMinorTickCount,
  • setMinorTickVisible,
  • setTickLabelFormatter,
  • setTickLabelsVisible

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JTable (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now