Class BubbleChart<X,​Y>

All Implemented Interfaces:
Styleable, EventTarget

public class BubbleChart<X,​Y>
extends XYChart<X,​Y>
Chart type that plots bubbles for the data points in a series. The extra value property of Data is used to represent the radius of the bubble it should be a java.lang.Number.
Since:
JavaFX 2.0
  • Constructor Details

    • BubbleChart

      public BubbleChart​(Axis<X> xAxis, Axis<Y> yAxis)
      Construct a new BubbleChart with the given axis. BubbleChart does not use a Category Axis. Both X and Y axes should be of type NumberAxis.
      Parameters:
      xAxis - The x axis to use
      yAxis - The y axis to use
    • BubbleChart

      public BubbleChart​(Axis<X> xAxis, Axis<Y> yAxis, ObservableList<XYChart.Series<X,​Y>> data)
      Construct a new BubbleChart with the given axis and data. BubbleChart does not use a Category Axis. Both X and Y axes should be of type NumberAxis.
      Parameters:
      xAxis - The x axis to use
      yAxis - The y axis to use
      data - The data to use, this is the actual list used so any changes to it will be reflected in the chart
  • Method Details

    • updateAxisRange

      protected void updateAxisRange()
      This is called when the range has been invalidated and we need to update it. If the axis are auto ranging then we compile a list of all data that the given axis has to plot and call invalidateRange() on the axis passing it that data.
      Overrides:
      updateAxisRange in class XYChart<X,​Y>