Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: XYChart

[19:7] extends: Chart

The XYChart class wraps javafx.scene.chart.XYChart, the abstract base for the two-axis charts (AreaChart, BarChart, BubbleChart, LineChart, ScatterChart, StackedAreaChart, StackedBarChart). It extends Chart and adds the X and Y axes, the series data list, and the grid-line and zero-line settings that all two-axis charts share. This wrapper is not constructed directly. Concrete charts extend it, mirroring the JavaFX inheritance model.

Methods

  • XYChart ()

    Base constructor. XYChart is abstract and is never instantiated on its own.

  • addSeries (object Series)

    Adds a data series to the chart's data list.

    • @p Series is a ChartSeries wrapper containing the data points to plot.
    • @r this object for chaining
  • getData ()

    Returns the chart's data series as ChartSeries wrappers.

    • @r A list of ChartSeries wrappers.
  • setData (DataList)

    Replaces the chart's data series. Accepts a list of ChartSeries wrappers (as returned by getData) or a raw ObservableList AJO.

    • @p DataList is a list of ChartSeries wrappers, or an ObservableList AJO.
    • @r this object for chaining
  • dataProperty ()

    Returns the ObjectProperty backing the data list.

    • @r An AJO wrapping ObjectProperty<ObservableList>.
  • getXAxis ()

    Returns the X axis of the chart.

    • @r An AJO wrapping javafx.scene.chart.Axis.
  • getYAxis ()

    Returns the Y axis of the chart.

    • @r An AJO wrapping javafx.scene.chart.Axis.
  • setVerticalGridLinesVisible (bool Visible)

    Sets whether the vertical grid lines are visible.

    • @p Visible is a bool; true shows the vertical grid lines.
    • @r this object for chaining
  • getVerticalGridLinesVisible ()

    Returns whether the vertical grid lines are visible.

    • @r A bool that is true when the vertical grid lines are shown.
  • verticalGridLinesVisibleProperty ()

    Returns the BooleanProperty backing the vertical grid line visibility.

    • @r An AJO wrapping javafx.beans.property.BooleanProperty.
  • setHorizontalGridLinesVisible (bool Visible)

    Sets whether the horizontal grid lines are visible.

    • @p Visible is a bool; true shows the horizontal grid lines.
    • @r this object for chaining
  • isHorizontalGridLinesVisible ()

    Returns whether the horizontal grid lines are visible.

    • @r A bool that is true when the horizontal grid lines are shown.
  • horizontalGridLinesVisibleProperty ()

    Returns the BooleanProperty backing the horizontal grid line visibility.

    • @r An AJO wrapping javafx.beans.property.BooleanProperty.
  • setVerticalZeroLineVisible (bool Visible)

    Sets whether the vertical zero line is visible.

    • @p Visible is a bool; true shows the vertical zero line.
    • @r this object for chaining
  • isVerticalZeroLineVisible ()

    Returns whether the vertical zero line is visible.

    • @r A bool that is true when the vertical zero line is shown.
  • verticalZeroLineVisibleProperty ()

    Returns the BooleanProperty backing the vertical zero line visibility.

    • @r An AJO wrapping javafx.beans.property.BooleanProperty.
  • setHorizontalZeroLineVisible (bool Visible)

    Sets whether the horizontal zero line is visible.

    • @p Visible is a bool; true shows the horizontal zero line.
    • @r this object for chaining
  • isHorizontalZeroLineVisible ()

    Returns whether the horizontal zero line is visible.

    • @r A bool that is true when the horizontal zero line is shown.
  • horizontalZeroLineVisibleProperty ()

    Returns the BooleanProperty backing the horizontal zero line visibility.

    • @r An AJO wrapping javafx.beans.property.BooleanProperty.
  • setAlternativeColumnFillVisible (bool Visible)

    Sets whether alternating column fills are visible.

    • @p Visible is a bool; true shows alternating column fills.
    • @r this object for chaining
  • isAlternativeColumnFillVisible ()

    Returns whether alternating column fills are visible.

    • @r A bool that is true when alternating column fills are shown.
  • alternativeColumnFillVisibleProperty ()

    Returns the BooleanProperty backing the alternating column fill.

    • @r An AJO wrapping javafx.beans.property.BooleanProperty.
  • setAlternativeRowFillVisible (bool Visible)

    Sets whether alternating row fills are visible.

    • @p Visible is a bool; true shows alternating row fills.
    • @r this object for chaining
  • isAlternativeRowFillVisible ()

    Returns whether alternating row fills are visible.

    • @r A bool that is true when alternating row fills are shown.
  • alternativeRowFillVisibleProperty ()

    Returns the BooleanProperty backing the alternating row fill.

    • @r An AJO wrapping javafx.beans.property.BooleanProperty.