congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BarChart.setCategoryGap
Code IndexAdd Tabnine to your IDE (free)

How to use
setCategoryGap
method
in
javafx.scene.chart.BarChart

Best Java code snippets using javafx.scene.chart.BarChart.setCategoryGap (Showing top 3 results out of 315)

origin: tech.tablesaw/tablesaw-plot

static BarChart<String, Number> getBarChart(String title, CategoryAxis categoryAxis, NumberAxis numberAxis) {
  BarChart<String, Number> bar = new BarChart<>(categoryAxis, numberAxis);
  bar.setTitle(title);
  bar.setLegendVisible(false);
  bar.setCategoryGap(0.0);
  bar.setBarGap(0.1);
  bar.setBackground(Background.EMPTY);
  bar.setVerticalGridLinesVisible(false);
  return bar;
}
origin: tech.tablesaw/tablesaw-plot

  private static BarChart<Number, String> getNumberStringBarChart(String title, NumberAxis xAxis, CategoryAxis
      yAxis) {
    final BarChart<Number, String> bar = new BarChart<>(xAxis, yAxis);
    bar.setTitle(title);
    bar.setLegendVisible(false);
    bar.setCategoryGap(0.0);
    bar.setBarGap(0.25);
    bar.setBackground(Background.EMPTY);
    bar.setHorizontalGridLinesVisible(false);
    return bar;
  }
}
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;
}
javafx.scene.chartBarChartsetCategoryGap

Popular methods of BarChart

  • <init>
  • getData
  • setTitle
  • getHeight
  • getWidth
  • getYAxis
  • setBackground
  • setBarGap
  • setHorizontalGridLinesVisible
  • setLegendVisible
  • setVerticalGridLinesVisible
  • setVerticalGridLinesVisible

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
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