# Uses of Class
javafx.scene.chart.XYChart.Data

Packages that use XYChart.Data
Package | Description
--- | ---
javafx.scene.chart | The JavaFX User Interface provides a set of chart components that are a very convenient way for data visualization.

- ## Uses of XYChart.Data in javafx.scene.chart

  Methods in javafx.scene.chart that return types with arguments of type XYChart.Data
  Modifier and Type | Method | Description
  --- | --- | ---
  `ObjectProperty<ObservableList<XYChart.Data<X,​Y>>>` | XYChart.Series.`dataProperty()` | ObservableList of data items that make up this series
  `ObservableList<XYChart.Data<X,​Y>>` | XYChart.Series.`getData()` | Gets the value of the property data.
  `protected Iterator<XYChart.Data<X,​Y>>` | XYChart.`getDisplayedDataIterator​(XYChart.Series<X,​Y> series)` | XYChart maintains a list of all items currently displayed this includes all current data + any data items recently deleted that are in the process of being faded out.

  Methods in javafx.scene.chart with parameters of type XYChart.Data
  Modifier and Type | Method | Description
  --- | --- | ---
  `protected ObjectProperty<Object>` | XYChart.`currentDisplayedExtraValueProperty​(XYChart.Data<X,​Y> item)` | The current displayed extra value property.
  `protected ObjectProperty<X>` | XYChart.`currentDisplayedXValueProperty​(XYChart.Data<X,​Y> item)` | The current displayed data value property that is plotted on X axis.
  `protected ObjectProperty<Y>` | XYChart.`currentDisplayedYValueProperty​(XYChart.Data<X,​Y> item)` | The current displayed data value property that is plotted on Y axis.
  `protected abstract void` | XYChart.`dataItemAdded​(XYChart.Series<X,​Y> series, int itemIndex, XYChart.Data<X,​Y> item)` | Called when a data item has been added to a series.
  `protected abstract void` | XYChart.`dataItemChanged​(XYChart.Data<X,​Y> item)` | Called when a data item has changed, ie its xValue, yValue or extraValue has changed.
  `protected abstract void` | XYChart.`dataItemRemoved​(XYChart.Data<X,​Y> item, XYChart.Series<X,​Y> series)` | Called when a data item has been removed from data model but it is still visible on the chart.
  `protected Object` | XYChart.`getCurrentDisplayedExtraValue​(XYChart.Data<X,​Y> item)` | The current displayed data extra value.
  `protected X` | XYChart.`getCurrentDisplayedXValue​(XYChart.Data<X,​Y> item)` | The current displayed data value plotted on the X axis.
  `protected Y` | XYChart.`getCurrentDisplayedYValue​(XYChart.Data<X,​Y> item)` | The current displayed data value plotted on the Y axis.
  `protected void` | XYChart.`removeDataItemFromDisplay​(XYChart.Series<X,​Y> series, XYChart.Data<X,​Y> item)` | This should be called from dataItemRemoved() when you are finished with any animation for deleting the item from the chart.
  `protected void` | XYChart.`setCurrentDisplayedExtraValue​(XYChart.Data<X,​Y> item, Object value)` | Set the current displayed data extra value.
  `protected void` | XYChart.`setCurrentDisplayedXValue​(XYChart.Data<X,​Y> item, X value)` | Set the current displayed data value plotted on X axis.
  `protected void` | XYChart.`setCurrentDisplayedYValue​(XYChart.Data<X,​Y> item, Y value)` | Set the current displayed data value plotted on Y axis.

  Method parameters in javafx.scene.chart with type arguments of type XYChart.Data
  Modifier and Type | Method | Description
  --- | --- | ---
  `void` | XYChart.Series.`setData​(ObservableList<XYChart.Data<X,​Y>> value)` | Sets the value of the property data.

  Constructor parameters in javafx.scene.chart with type arguments of type XYChart.Data
  Constructor | Description
  --- | ---
  `Series​(String name, ObservableList<XYChart.Data<X,​Y>> data)` | Constructs a named Series and populates it with the given `ObservableList` data.
  `Series​(ObservableList<XYChart.Data<X,​Y>> data)` | Constructs a Series and populates it with the given `ObservableList` data.