<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FChart%2FOverlaid_Bar_Chart</id>
		<title>Java/Chart/Overlaid Bar Chart - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FChart%2FOverlaid_Bar_Chart"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Overlaid_Bar_Chart&amp;action=history"/>
		<updated>2026-04-06T01:02:13Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Chart/Overlaid_Bar_Chart&amp;diff=7963&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Overlaid_Bar_Chart&amp;diff=7963&amp;oldid=prev"/>
				<updated>2010-06-01T06:51:58Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:51, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Chart/Overlaid_Bar_Chart&amp;diff=7962&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Overlaid_Bar_Chart&amp;diff=7962&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== JFreeChart: Overlaid Bar Chart Demo ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/* ===========================================================&lt;br /&gt;
 * JFreeChart : a free chart library for the Java(tm) platform&lt;br /&gt;
 * ===========================================================&lt;br /&gt;
 *&lt;br /&gt;
 * (C) Copyright 2000-2004, by Object Refinery Limited and Contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * Project Info:  http://www.jfree.org/jfreechart/index.html&lt;br /&gt;
 *&lt;br /&gt;
 * This library is free software; you can redistribute it and/or modify it under the terms&lt;br /&gt;
 * of the GNU Lesser General Public License as published by the Free Software Foundation;&lt;br /&gt;
 * either version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;&lt;br /&gt;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
 * See the GNU Lesser General Public License for more details.&lt;br /&gt;
 *&lt;br /&gt;
 * You should have received a copy of the GNU Lesser General Public License along with this&lt;br /&gt;
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,&lt;br /&gt;
 * Boston, MA 02111-1307, USA.&lt;br /&gt;
 *&lt;br /&gt;
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. &lt;br /&gt;
 * in the United States and other countries.]&lt;br /&gt;
 *&lt;br /&gt;
 * -------------------------&lt;br /&gt;
 * OverlaidBarChartDemo.java&lt;br /&gt;
 * -------------------------&lt;br /&gt;
 * (C) Copyright 2002-2004, by Object Refinery Limited.&lt;br /&gt;
 *&lt;br /&gt;
 * Original Author:  David Gilbert (for Object Refinery Limited);&lt;br /&gt;
 * Contributor(s):   -;&lt;br /&gt;
 *&lt;br /&gt;
 * $Id: OverlaidBarChartDemo.java,v 1.36 2004/06/02 09:48:24 mungady Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Changes&lt;br /&gt;
 * -------&lt;br /&gt;
 * 20-Sep-2002 : Version 1 (DG);&lt;br /&gt;
 * 11-Oct-2002 : Added tooltips, modified series colors, centered frame on screen (DG);&lt;br /&gt;
 * 11-Feb-2003 : Fixed bug where category labels were not showing on the axis (DG);&lt;br /&gt;
 * 08-Sep-2003 : Bug fix (DG);&lt;br /&gt;
 * 02-Jun-2004 : Set the rendering order (DG);&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
package org.jfree.chart.demo;&lt;br /&gt;
import org.jfree.chart.ChartPanel;&lt;br /&gt;
import org.jfree.chart.JFreeChart;&lt;br /&gt;
import org.jfree.chart.axis.CategoryAxis;&lt;br /&gt;
import org.jfree.chart.axis.CategoryLabelPositions;&lt;br /&gt;
import org.jfree.chart.axis.NumberAxis;&lt;br /&gt;
import org.jfree.chart.axis.ValueAxis;&lt;br /&gt;
import org.jfree.chart.plot.CategoryPlot;&lt;br /&gt;
import org.jfree.chart.plot.DatasetRenderingOrder;&lt;br /&gt;
import org.jfree.chart.plot.PlotOrientation;&lt;br /&gt;
import org.jfree.chart.renderer.category.BarRenderer;&lt;br /&gt;
import org.jfree.chart.renderer.category.CategoryItemRenderer;&lt;br /&gt;
import org.jfree.chart.renderer.category.LineAndShapeRenderer;&lt;br /&gt;
import org.jfree.data.category.DefaultCategoryDataset;&lt;br /&gt;
import org.jfree.ui.ApplicationFrame;&lt;br /&gt;
import org.jfree.ui.RefineryUtilities;&lt;br /&gt;
/**&lt;br /&gt;
 * A simple demonstration application showing how to create a bar chart overlaid&lt;br /&gt;
 * with a line chart.&lt;br /&gt;
 */&lt;br /&gt;
public class OverlaidBarChartDemo extends ApplicationFrame {&lt;br /&gt;
    /**&lt;br /&gt;
     * Default constructor.&lt;br /&gt;
     *&lt;br /&gt;
     * @param title  the frame title.&lt;br /&gt;
     */&lt;br /&gt;
    public OverlaidBarChartDemo(final String title) {&lt;br /&gt;
        super(title);&lt;br /&gt;
        // create the first dataset...&lt;br /&gt;
        DefaultCategoryDataset dataset1 = new DefaultCategoryDataset();&lt;br /&gt;
        dataset1.addValue(1.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset1.addValue(4.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset1.addValue(3.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset1.addValue(5.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset1.addValue(5.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        dataset1.addValue(7.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 6&amp;quot;);&lt;br /&gt;
        dataset1.addValue(7.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 7&amp;quot;);&lt;br /&gt;
        dataset1.addValue(8.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 8&amp;quot;);&lt;br /&gt;
        dataset1.addValue(5.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset1.addValue(7.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset1.addValue(6.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset1.addValue(8.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset1.addValue(4.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        dataset1.addValue(4.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 6&amp;quot;);&lt;br /&gt;
        dataset1.addValue(2.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 7&amp;quot;);&lt;br /&gt;
        dataset1.addValue(1.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 8&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        // create the first renderer...&lt;br /&gt;
  //      final CategoryLabelGenerator generator = new StandardCategoryLabelGenerator();&lt;br /&gt;
        final CategoryItemRenderer renderer = new BarRenderer();&lt;br /&gt;
    //    renderer.setLabelGenerator(generator);&lt;br /&gt;
        renderer.setItemLabelsVisible(true);&lt;br /&gt;
        &lt;br /&gt;
        final CategoryPlot plot = new CategoryPlot();&lt;br /&gt;
        plot.setDataset(dataset1);&lt;br /&gt;
        plot.setRenderer(renderer);&lt;br /&gt;
        &lt;br /&gt;
        plot.setDomainAxis(new CategoryAxis(&amp;quot;Category&amp;quot;));&lt;br /&gt;
        plot.setRangeAxis(new NumberAxis(&amp;quot;Value&amp;quot;));&lt;br /&gt;
        plot.setOrientation(PlotOrientation.VERTICAL);&lt;br /&gt;
        plot.setRangeGridlinesVisible(true);&lt;br /&gt;
        plot.setDomainGridlinesVisible(true);&lt;br /&gt;
        // now create the second dataset and renderer...&lt;br /&gt;
        DefaultCategoryDataset dataset2 = new DefaultCategoryDataset();&lt;br /&gt;
        dataset2.addValue(9.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset2.addValue(7.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset2.addValue(2.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset2.addValue(6.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset2.addValue(6.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        dataset2.addValue(9.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 6&amp;quot;);&lt;br /&gt;
        dataset2.addValue(5.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 7&amp;quot;);&lt;br /&gt;
        dataset2.addValue(4.0, &amp;quot;T1&amp;quot;, &amp;quot;Category 8&amp;quot;);&lt;br /&gt;
        final CategoryItemRenderer renderer2 = new LineAndShapeRenderer();&lt;br /&gt;
        plot.setDataset(1, dataset2);&lt;br /&gt;
        plot.setRenderer(1, renderer2);&lt;br /&gt;
        // create the third dataset and renderer...&lt;br /&gt;
        final ValueAxis rangeAxis2 = new NumberAxis(&amp;quot;Axis 2&amp;quot;);&lt;br /&gt;
        plot.setRangeAxis(1, rangeAxis2);&lt;br /&gt;
        DefaultCategoryDataset dataset3 = new DefaultCategoryDataset();&lt;br /&gt;
        dataset3.addValue(94.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset3.addValue(75.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset3.addValue(22.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset3.addValue(74.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset3.addValue(83.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        dataset3.addValue(9.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 6&amp;quot;);&lt;br /&gt;
        dataset3.addValue(23.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 7&amp;quot;);&lt;br /&gt;
        dataset3.addValue(98.0, &amp;quot;R1&amp;quot;, &amp;quot;Category 8&amp;quot;);&lt;br /&gt;
        plot.setDataset(2, dataset3);&lt;br /&gt;
        final CategoryItemRenderer renderer3 = new LineAndShapeRenderer();&lt;br /&gt;
        plot.setRenderer(2, renderer3);&lt;br /&gt;
        plot.mapDatasetToRangeAxis(2, 1);&lt;br /&gt;
        // change the rendering order so the primary dataset appears &amp;quot;behind&amp;quot; the &lt;br /&gt;
        // other datasets...&lt;br /&gt;
        plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);&lt;br /&gt;
        &lt;br /&gt;
        plot.getDomainAxis().setCategoryLabelPositions(CategoryLabelPositions.UP_45);&lt;br /&gt;
        final JFreeChart chart = new JFreeChart(plot);&lt;br /&gt;
        chart.setTitle(&amp;quot;Overlaid Bar Chart&amp;quot;);&lt;br /&gt;
      //  chart.setLegend(new StandardLegend());&lt;br /&gt;
        // add the chart to a panel...&lt;br /&gt;
        final ChartPanel chartPanel = new ChartPanel(chart);&lt;br /&gt;
        chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));&lt;br /&gt;
        setContentPane(chartPanel);&lt;br /&gt;
    }&lt;br /&gt;
    // ****************************************************************************&lt;br /&gt;
    // * JFREECHART DEVELOPER GUIDE                                               *&lt;br /&gt;
    // * The JFreeChart Developer Guide, written by David Gilbert, is available   *&lt;br /&gt;
    // * to purchase from Object Refinery Limited:                                *&lt;br /&gt;
    // *                                                                          *&lt;br /&gt;
    // * http://www.object-refinery.ru/jfreechart/guide.html                     *&lt;br /&gt;
    // *                                                                          *&lt;br /&gt;
    // * Sales are used to provide funding for the JFreeChart project - please    * &lt;br /&gt;
    // * support us so that we can continue developing free software.             *&lt;br /&gt;
    // ****************************************************************************&lt;br /&gt;
    &lt;br /&gt;
    /**&lt;br /&gt;
     * Starting point for the demonstration application.&lt;br /&gt;
     *&lt;br /&gt;
     * @param args  ignored.&lt;br /&gt;
     */&lt;br /&gt;
    public static void main(final String[] args) {&lt;br /&gt;
        final OverlaidBarChartDemo demo = new OverlaidBarChartDemo(&amp;quot;Overlaid Bar Chart Demo&amp;quot;);&lt;br /&gt;
        demo.pack();&lt;br /&gt;
        RefineryUtilities.centerFrameOnScreen(demo);&lt;br /&gt;
        demo.setVisible(true);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JFreeChart: Overlaid Bar Chart Demo 2 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/* ===========================================================&lt;br /&gt;
 * JFreeChart : a free chart library for the Java(tm) platform&lt;br /&gt;
 * ===========================================================&lt;br /&gt;
 *&lt;br /&gt;
 * (C) Copyright 2000-2004, by Object Refinery Limited and Contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * Project Info:  http://www.jfree.org/jfreechart/index.html&lt;br /&gt;
 *&lt;br /&gt;
 * This library is free software; you can redistribute it and/or modify it under the terms&lt;br /&gt;
 * of the GNU Lesser General Public License as published by the Free Software Foundation;&lt;br /&gt;
 * either version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;&lt;br /&gt;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;
 * See the GNU Lesser General Public License for more details.&lt;br /&gt;
 *&lt;br /&gt;
 * You should have received a copy of the GNU Lesser General Public License along with this&lt;br /&gt;
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,&lt;br /&gt;
 * Boston, MA 02111-1307, USA.&lt;br /&gt;
 *&lt;br /&gt;
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. &lt;br /&gt;
 * in the United States and other countries.]&lt;br /&gt;
 *&lt;br /&gt;
 * --------------------------&lt;br /&gt;
 * OverlaidBarChartDemo2.java&lt;br /&gt;
 * --------------------------&lt;br /&gt;
 * (C) Copyright 2004, by Object Refinery Limited.&lt;br /&gt;
 *&lt;br /&gt;
 * Original Author:  David Gilbert (for Object Refinery Limited);&lt;br /&gt;
 * Contributor(s):   -;&lt;br /&gt;
 *&lt;br /&gt;
 * $Id: OverlaidBarChartDemo2.java,v 1.9 2004/06/02 09:48:24 mungady Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Changes&lt;br /&gt;
 * -------&lt;br /&gt;
 * 09-Jan-2004 : Version 1 (DG);&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
package org.jfree.chart.demo;&lt;br /&gt;
import java.awt.BasicStroke;&lt;br /&gt;
import java.awt.Color;&lt;br /&gt;
import org.jfree.chart.ChartPanel;&lt;br /&gt;
import org.jfree.chart.JFreeChart;&lt;br /&gt;
import org.jfree.chart.axis.CategoryAxis;&lt;br /&gt;
import org.jfree.chart.axis.NumberAxis;&lt;br /&gt;
import org.jfree.chart.labels.StandardCategoryToolTipGenerator;&lt;br /&gt;
import org.jfree.chart.plot.CategoryPlot;&lt;br /&gt;
import org.jfree.chart.plot.DatasetRenderingOrder;&lt;br /&gt;
import org.jfree.chart.plot.PlotOrientation;&lt;br /&gt;
import org.jfree.chart.renderer.category.BarRenderer;&lt;br /&gt;
import org.jfree.chart.renderer.category.CategoryItemRenderer;&lt;br /&gt;
import org.jfree.chart.renderer.category.LevelRenderer;&lt;br /&gt;
import org.jfree.data.category.DefaultCategoryDataset;&lt;br /&gt;
import org.jfree.ui.ApplicationFrame;&lt;br /&gt;
import org.jfree.ui.RefineryUtilities;&lt;br /&gt;
/**&lt;br /&gt;
 * Another demo of an overlaid bar chart.&lt;br /&gt;
 */&lt;br /&gt;
public class OverlaidBarChartDemo2 extends ApplicationFrame {&lt;br /&gt;
    /**&lt;br /&gt;
     * Default constructor.&lt;br /&gt;
     *&lt;br /&gt;
     * @param title  the frame title.&lt;br /&gt;
     */&lt;br /&gt;
    public OverlaidBarChartDemo2(final String title) {&lt;br /&gt;
        super(title);&lt;br /&gt;
        final JFreeChart chart = createChart();&lt;br /&gt;
        final ChartPanel chartPanel = new ChartPanel(chart);&lt;br /&gt;
        chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));&lt;br /&gt;
        setContentPane(chartPanel);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    /**&lt;br /&gt;
     * Creates a sample chart.&lt;br /&gt;
     * &lt;br /&gt;
     * @return A sample chart.&lt;br /&gt;
     */&lt;br /&gt;
    private JFreeChart createChart() {&lt;br /&gt;
        &lt;br /&gt;
        // create the first dataset...&lt;br /&gt;
        DefaultCategoryDataset dataset1 = new DefaultCategoryDataset();&lt;br /&gt;
        dataset1.addValue(1.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset1.addValue(4.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset1.addValue(3.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset1.addValue(5.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset1.addValue(5.0, &amp;quot;S1&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        dataset1.addValue(5.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset1.addValue(7.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset1.addValue(6.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset1.addValue(8.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset1.addValue(4.0, &amp;quot;S2&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        // create the first plot...&lt;br /&gt;
        final CategoryItemRenderer renderer = new BarRenderer();&lt;br /&gt;
        renderer.setToolTipGenerator(new StandardCategoryToolTipGenerator());&lt;br /&gt;
        final CategoryPlot plot = new CategoryPlot();&lt;br /&gt;
        plot.setDataset(dataset1);&lt;br /&gt;
        plot.setRenderer(renderer);&lt;br /&gt;
        &lt;br /&gt;
        plot.setDomainAxis(new CategoryAxis(&amp;quot;Category&amp;quot;));&lt;br /&gt;
        plot.setRangeAxis(new NumberAxis(&amp;quot;Value&amp;quot;));&lt;br /&gt;
        plot.setOrientation(PlotOrientation.VERTICAL);&lt;br /&gt;
        plot.setRangeGridlinesVisible(true);&lt;br /&gt;
        plot.setDomainGridlinesVisible(true);&lt;br /&gt;
        DefaultCategoryDataset dataset2 = new DefaultCategoryDataset();&lt;br /&gt;
        dataset2.addValue(6.0, &amp;quot;Prior 1&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset2.addValue(7.0, &amp;quot;Prior 1&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset2.addValue(2.0, &amp;quot;Prior 1&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset2.addValue(6.0, &amp;quot;Prior 1&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset2.addValue(6.0, &amp;quot;Prior 1&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        dataset2.addValue(4.0, &amp;quot;Prior 2&amp;quot;, &amp;quot;Category 1&amp;quot;);&lt;br /&gt;
        dataset2.addValue(2.0, &amp;quot;Prior 2&amp;quot;, &amp;quot;Category 2&amp;quot;);&lt;br /&gt;
        dataset2.addValue(1.0, &amp;quot;Prior 2&amp;quot;, &amp;quot;Category 3&amp;quot;);&lt;br /&gt;
        dataset2.addValue(3.0, &amp;quot;Prior 2&amp;quot;, &amp;quot;Category 4&amp;quot;);&lt;br /&gt;
        dataset2.addValue(2.0, &amp;quot;Prior 2&amp;quot;, &amp;quot;Category 5&amp;quot;);&lt;br /&gt;
        final CategoryItemRenderer renderer2 = new LevelRenderer();&lt;br /&gt;
        renderer2.setSeriesStroke(0, new BasicStroke(2.0f));&lt;br /&gt;
        renderer2.setSeriesStroke(1, new BasicStroke(2.0f));&lt;br /&gt;
        plot.setDataset(1, dataset2);&lt;br /&gt;
        plot.setRenderer(1, renderer2);&lt;br /&gt;
        plot.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);&lt;br /&gt;
        &lt;br /&gt;
        plot.setBackgroundPaint(Color.lightGray);&lt;br /&gt;
        plot.setRangeGridlinePaint(Color.white);&lt;br /&gt;
        &lt;br /&gt;
        final JFreeChart chart = new JFreeChart(plot);&lt;br /&gt;
        chart.setTitle(&amp;quot;Overlaid Bar Chart&amp;quot;);&lt;br /&gt;
//        chart.setLegend(new StandardLegend());&lt;br /&gt;
        chart.setBackgroundPaint(Color.white);&lt;br /&gt;
        return chart;&lt;br /&gt;
    }&lt;br /&gt;
    // ****************************************************************************&lt;br /&gt;
    // * JFREECHART DEVELOPER GUIDE                                               *&lt;br /&gt;
    // * The JFreeChart Developer Guide, written by David Gilbert, is available   *&lt;br /&gt;
    // * to purchase from Object Refinery Limited:                                *&lt;br /&gt;
    // *                                                                          *&lt;br /&gt;
    // * http://www.object-refinery.ru/jfreechart/guide.html                     *&lt;br /&gt;
    // *                                                                          *&lt;br /&gt;
    // * Sales are used to provide funding for the JFreeChart project - please    * &lt;br /&gt;
    // * support us so that we can continue developing free software.             *&lt;br /&gt;
    // ****************************************************************************&lt;br /&gt;
    &lt;br /&gt;
    /**&lt;br /&gt;
     * Starting point for the demonstration application.&lt;br /&gt;
     *&lt;br /&gt;
     * @param args  ignored.&lt;br /&gt;
     */&lt;br /&gt;
    public static void main(final String[] args) {&lt;br /&gt;
        final OverlaidBarChartDemo2 demo = new OverlaidBarChartDemo2(&amp;quot;Overlaid Bar Chart Demo 2&amp;quot;);&lt;br /&gt;
        demo.pack();&lt;br /&gt;
        RefineryUtilities.centerFrameOnScreen(demo);&lt;br /&gt;
        demo.setVisible(true);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>