code: public static ChartPanel createPanel(JFreeChart chart) {
      ChartPanel panel = new ChartPanel(chart);
      panel.setFillZoomRectangle(true);
      panel.setMouseWheelEnabled(true);
      return panel;
    }
docs: Creates a panel for the demo (used by SuperDemo.java).
  
  @return A panel.