Class XYChart


  • public class XYChart
    extends PointLineChart
    XYChart is a scatter chart.
    • Field Detail

      • positionAtColumnCenter

        public boolean positionAtColumnCenter
        Position the values at the center of the column instead of at the line.
    • Constructor Detail

      • XYChart

        public XYChart()
        Creates a new XY (scatter) chart without categories
      • XYChart

        public XYChart​(java.lang.String[] categories)
        Creates a new XY (scatter) chart with the given categories
    • Method Detail

      • onPaint

        public void onPaint​(Graphics g)
        Description copied from class: Control
        Called to draw the control. When this method is called, the graphics object passed has been translated into the coordinate system of the control and the area behind the control has already been painted.
        Overrides:
        onPaint in class PointLineChart
        Parameters:
        g - the graphics object for drawing
        See Also:
        Graphics