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

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Chart/Statistical_Bar_Chart&amp;diff=8045&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Chart/Statistical_Bar_Chart&amp;diff=8045&amp;oldid=prev"/>
				<updated>2010-06-01T06:52:23Z</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:52, 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://www.jexp.ru/index.php?title=Java/Chart/Statistical_Bar_Chart&amp;diff=8044&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Chart/Statistical_Bar_Chart&amp;diff=8044&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: Statistical 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;
 * StatisticalBarChartDemo.java&lt;br /&gt;
 * ----------------------------&lt;br /&gt;
 * (C) Copyright 2002-2004, by Pascal Collet and Contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * Original Author:  Pascal Collet;&lt;br /&gt;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);&lt;br /&gt;
 *&lt;br /&gt;
 * $Id: StatisticalBarChartDemo.java,v 1.15 2004/05/07 15:51:37 mungady Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Changes&lt;br /&gt;
 * -------&lt;br /&gt;
 * 21-Aug-2002 : Version 1, contributed by Pascal Collet (DG);&lt;br /&gt;
 * 11-Oct-2002 : Fixed errors reported by Checkstyle (DG);&lt;br /&gt;
 * 05-Feb-2003 : Updated for documentation (DG);&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
package org.jfree.chart.demo;&lt;br /&gt;
import java.awt.Font;&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.axis.ValueAxis;&lt;br /&gt;
import org.jfree.chart.plot.CategoryPlot;&lt;br /&gt;
import org.jfree.chart.renderer.category.CategoryItemRenderer;&lt;br /&gt;
import org.jfree.chart.renderer.category.StatisticalBarRenderer;&lt;br /&gt;
import org.jfree.data.statistics.DefaultStatisticalCategoryDataset;&lt;br /&gt;
import org.jfree.data.statistics.StatisticalCategoryDataset;&lt;br /&gt;
import org.jfree.ui.ApplicationFrame;&lt;br /&gt;
import org.jfree.ui.RefineryUtilities;&lt;br /&gt;
/**&lt;br /&gt;
 * Demonstration of the statistical bar graph.&lt;br /&gt;
 *&lt;br /&gt;
 * @author Pascal Collet&lt;br /&gt;
 */&lt;br /&gt;
public class StatisticalBarChartDemo extends ApplicationFrame {&lt;br /&gt;
    /**&lt;br /&gt;
     * Creates a new demo.&lt;br /&gt;
     *&lt;br /&gt;
     * @param title  the frame title.&lt;br /&gt;
     */&lt;br /&gt;
    public StatisticalBarChartDemo(final String title) {&lt;br /&gt;
        super(title);&lt;br /&gt;
        final StatisticalCategoryDataset dataset = createDataset();&lt;br /&gt;
        final CategoryAxis xAxis = new CategoryAxis(&amp;quot;Type&amp;quot;);&lt;br /&gt;
        xAxis.setLowerMargin(0.01d); // percentage of space before first bar&lt;br /&gt;
        xAxis.setUpperMargin(0.01d); // percentage of space after last bar&lt;br /&gt;
        xAxis.setCategoryMargin(0.05d); // percentage of space between categories&lt;br /&gt;
        final ValueAxis yAxis = new NumberAxis(&amp;quot;Value&amp;quot;);&lt;br /&gt;
        // define the plot&lt;br /&gt;
        final CategoryItemRenderer renderer = new StatisticalBarRenderer();&lt;br /&gt;
        final CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis, renderer);&lt;br /&gt;
        final JFreeChart chart = new JFreeChart(&amp;quot;Statistical Bar Chart Demo&amp;quot;,&lt;br /&gt;
                                          new Font(&amp;quot;Helvetica&amp;quot;, Font.BOLD, 14),&lt;br /&gt;
                                          plot,&lt;br /&gt;
                                          true);&lt;br /&gt;
        //chart.setBackgroundPaint(Color.white);&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;
     * Creates a sample dataset.&lt;br /&gt;
     *&lt;br /&gt;
     * @return The dataset.&lt;br /&gt;
     */&lt;br /&gt;
    private StatisticalCategoryDataset createDataset() {&lt;br /&gt;
        final DefaultStatisticalCategoryDataset result = new DefaultStatisticalCategoryDataset();&lt;br /&gt;
        result.add(32.5, 17.9, &amp;quot;Series 1&amp;quot;, &amp;quot;Type 1&amp;quot;);&lt;br /&gt;
        result.add(27.8, 11.4, &amp;quot;Series 1&amp;quot;, &amp;quot;Type 2&amp;quot;);&lt;br /&gt;
        result.add(29.3, 14.4, &amp;quot;Series 1&amp;quot;, &amp;quot;Type 3&amp;quot;);&lt;br /&gt;
        result.add(37.9, 10.3, &amp;quot;Series 1&amp;quot;, &amp;quot;Type 4&amp;quot;);&lt;br /&gt;
        result.add(22.9,  7.9, &amp;quot;Series 2&amp;quot;, &amp;quot;Type 1&amp;quot;);&lt;br /&gt;
        result.add(21.8, 18.4, &amp;quot;Series 2&amp;quot;, &amp;quot;Type 2&amp;quot;);&lt;br /&gt;
        result.add(19.3, 12.4, &amp;quot;Series 2&amp;quot;, &amp;quot;Type 3&amp;quot;);&lt;br /&gt;
        result.add(30.3, 20.7, &amp;quot;Series 2&amp;quot;, &amp;quot;Type 4&amp;quot;);&lt;br /&gt;
        result.add(12.5, 10.9, &amp;quot;Series 3&amp;quot;, &amp;quot;Type 1&amp;quot;);&lt;br /&gt;
        result.add(24.8,  7.4, &amp;quot;Series 3&amp;quot;, &amp;quot;Type 2&amp;quot;);&lt;br /&gt;
        result.add(19.3, 13.4, &amp;quot;Series 3&amp;quot;, &amp;quot;Type 3&amp;quot;);&lt;br /&gt;
        result.add(17.1, 10.6, &amp;quot;Series 3&amp;quot;, &amp;quot;Type 4&amp;quot;);&lt;br /&gt;
        return result;&lt;br /&gt;
    }&lt;br /&gt;
    /**&lt;br /&gt;
     * For testing from the command line.&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 StatisticalBarChartDemo demo = new StatisticalBarChartDemo(&lt;br /&gt;
            &amp;quot;Statistical Bar Chart Demo&amp;quot;&lt;br /&gt;
        );&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>