Basics
Guides
API Reference
Basics
Guides
API Reference
[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.
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.
Series is a ChartSeries wrapper containing the data points to plot.this object for chaininggetData ()
Returns the chart's data series as ChartSeries wrappers.
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.
DataList is a list of ChartSeries wrappers, or an ObservableList AJO.this object for chainingdataProperty ()
Returns the ObjectProperty backing the data list.
An AJO wrapping ObjectProperty<ObservableListgetXAxis ()
Returns the X axis of the chart.
An AJO wrapping javafx.scene.chart.Axis.getYAxis ()
Returns the Y axis of the chart.
An AJO wrapping javafx.scene.chart.Axis.setVerticalGridLinesVisible (bool Visible)
Sets whether the vertical grid lines are visible.
Visible is a bool; true shows the vertical grid lines.this object for chaininggetVerticalGridLinesVisible ()
Returns whether the vertical grid lines are visible.
A bool that is true when the vertical grid lines are shown.verticalGridLinesVisibleProperty ()
Returns the BooleanProperty backing the vertical grid line visibility.
An AJO wrapping javafx.beans.property.BooleanProperty.setHorizontalGridLinesVisible (bool Visible)
Sets whether the horizontal grid lines are visible.
Visible is a bool; true shows the horizontal grid lines.this object for chainingisHorizontalGridLinesVisible ()
Returns whether the horizontal grid lines are visible.
A bool that is true when the horizontal grid lines are shown.horizontalGridLinesVisibleProperty ()
Returns the BooleanProperty backing the horizontal grid line visibility.
An AJO wrapping javafx.beans.property.BooleanProperty.setVerticalZeroLineVisible (bool Visible)
Sets whether the vertical zero line is visible.
Visible is a bool; true shows the vertical zero line.this object for chainingisVerticalZeroLineVisible ()
Returns whether the vertical zero line is visible.
A bool that is true when the vertical zero line is shown.verticalZeroLineVisibleProperty ()
Returns the BooleanProperty backing the vertical zero line visibility.
An AJO wrapping javafx.beans.property.BooleanProperty.setHorizontalZeroLineVisible (bool Visible)
Sets whether the horizontal zero line is visible.
Visible is a bool; true shows the horizontal zero line.this object for chainingisHorizontalZeroLineVisible ()
Returns whether the horizontal zero line is visible.
A bool that is true when the horizontal zero line is shown.horizontalZeroLineVisibleProperty ()
Returns the BooleanProperty backing the horizontal zero line visibility.
An AJO wrapping javafx.beans.property.BooleanProperty.setAlternativeColumnFillVisible (bool Visible)
Sets whether alternating column fills are visible.
Visible is a bool; true shows alternating column fills.this object for chainingisAlternativeColumnFillVisible ()
Returns whether alternating column fills are visible.
A bool that is true when alternating column fills are shown.alternativeColumnFillVisibleProperty ()
Returns the BooleanProperty backing the alternating column fill.
An AJO wrapping javafx.beans.property.BooleanProperty.setAlternativeRowFillVisible (bool Visible)
Sets whether alternating row fills are visible.
Visible is a bool; true shows alternating row fills.this object for chainingisAlternativeRowFillVisible ()
Returns whether alternating row fills are visible.
A bool that is true when alternating row fills are shown.alternativeRowFillVisibleProperty ()
Returns the BooleanProperty backing the alternating row fill.
An AJO wrapping javafx.beans.property.BooleanProperty.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.