Class DualAxisDemo5

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.jfree.ui.ApplicationFrame
org.jfree.chart.demo.DualAxisDemo5
All Implemented Interfaces:
WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class DualAxisDemo5
extends org.jfree.ui.ApplicationFrame
This demo shows how to create a dual axis bar chart. A workaround is used because the BarRenderer and CategoryAxis classes will overlap the bars for the two datasets - to get around this, an an additional series (containing 'null' values) is added to each dataset, and the getLegendItems() method in the plot is overridden.
See Also:
Serialized Form
  • Constructor Details

    • DualAxisDemo5

      public DualAxisDemo5​(String title)
      Creates a new demo instance.
      Parameters:
      title - the frame title.
  • Method Details

    • main

      public static void main​(String[] args)
      Starting point for the demonstration application.
      Parameters:
      args - ignored.