<?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%2FBox_and_Whisker_Chart</id>
		<title>Java/Chart/Box and Whisker 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%2FBox_and_Whisker_Chart"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Chart/Box_and_Whisker_Chart&amp;action=history"/>
		<updated>2026-04-21T20:36:53Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Chart/Box_and_Whisker_Chart&amp;diff=8087&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Chart/Box_and_Whisker_Chart&amp;diff=8087&amp;oldid=prev"/>
				<updated>2010-06-01T06:53:30Z</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:53, 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/Box_and_Whisker_Chart&amp;diff=8086&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/Box_and_Whisker_Chart&amp;diff=8086&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: Box And Whisker 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;
 * 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;
 * BoxAndWhiskerDemo.java&lt;br /&gt;
 * ----------------------&lt;br /&gt;
 * (C) Copyright 2003, 2004, by David Browning and Contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * Original Author:  David Browning (for the Australian Institute of Marine Science);&lt;br /&gt;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);&lt;br /&gt;
 *&lt;br /&gt;
 * $Id: BoxAndWhiskerDemo.java,v 1.12 2004/06/02 14:35:42 mungady Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Changes&lt;br /&gt;
 * -------&lt;br /&gt;
 * 21-Aug-2003 : Version 1, contributed by David Browning (for the Australian Institute of &lt;br /&gt;
 *               Marine Science);&lt;br /&gt;
 * 27-Aug-2003 : Renamed BoxAndWhiskerCategoryDemo --&amp;gt; BoxAndWhiskerDemo, moved dataset creation&lt;br /&gt;
 *               into the demo (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 java.util.ArrayList;&lt;br /&gt;
import java.util.List;&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.BoxAndWhiskerToolTipGenerator;&lt;br /&gt;
import org.jfree.chart.plot.CategoryPlot;&lt;br /&gt;
import org.jfree.chart.renderer.category.BoxAndWhiskerRenderer;&lt;br /&gt;
import org.jfree.data.statistics.BoxAndWhiskerCategoryDataset;&lt;br /&gt;
import org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset;&lt;br /&gt;
import org.jfree.ui.ApplicationFrame;&lt;br /&gt;
import org.jfree.ui.RefineryUtilities;&lt;br /&gt;
import org.jfree.util.Log;&lt;br /&gt;
import org.jfree.util.LogContext;&lt;br /&gt;
/**&lt;br /&gt;
 * Demonstration of a box-and-whisker chart using a {@link CategoryPlot}.&lt;br /&gt;
 *&lt;br /&gt;
 * @author David Browning&lt;br /&gt;
 */&lt;br /&gt;
public class BoxAndWhiskerDemo extends ApplicationFrame {&lt;br /&gt;
    /** Access to logging facilities. */&lt;br /&gt;
    private static final LogContext LOGGER = Log.createContext(BoxAndWhiskerDemo.class);&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 BoxAndWhiskerDemo(final String title) {&lt;br /&gt;
        super(title);&lt;br /&gt;
        &lt;br /&gt;
        final BoxAndWhiskerCategoryDataset dataset = createSampleDataset();&lt;br /&gt;
        final CategoryAxis xAxis = new CategoryAxis(&amp;quot;Type&amp;quot;);&lt;br /&gt;
        final NumberAxis yAxis = new NumberAxis(&amp;quot;Value&amp;quot;);&lt;br /&gt;
        yAxis.setAutoRangeIncludesZero(false);&lt;br /&gt;
        final BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer();&lt;br /&gt;
        renderer.setFillBox(false);&lt;br /&gt;
        renderer.setToolTipGenerator(new BoxAndWhiskerToolTipGenerator());&lt;br /&gt;
        final CategoryPlot plot = new CategoryPlot(dataset, xAxis, yAxis, renderer);&lt;br /&gt;
        final JFreeChart chart = new JFreeChart(&lt;br /&gt;
            &amp;quot;Box-and-Whisker Demo&amp;quot;,&lt;br /&gt;
            new Font(&amp;quot;SansSerif&amp;quot;, Font.BOLD, 14),&lt;br /&gt;
            plot,&lt;br /&gt;
            true&lt;br /&gt;
        );&lt;br /&gt;
        final ChartPanel chartPanel = new ChartPanel(chart);&lt;br /&gt;
        chartPanel.setPreferredSize(new java.awt.Dimension(450, 270));&lt;br /&gt;
        setContentPane(chartPanel);&lt;br /&gt;
    }&lt;br /&gt;
    /**&lt;br /&gt;
     * Creates a sample dataset.&lt;br /&gt;
     * &lt;br /&gt;
     * @return A sample dataset.&lt;br /&gt;
     */&lt;br /&gt;
    private BoxAndWhiskerCategoryDataset createSampleDataset() {&lt;br /&gt;
        &lt;br /&gt;
        final int seriesCount = 3;&lt;br /&gt;
        final int categoryCount = 4;&lt;br /&gt;
        final int entityCount = 22;&lt;br /&gt;
        &lt;br /&gt;
        final DefaultBoxAndWhiskerCategoryDataset dataset &lt;br /&gt;
            = new DefaultBoxAndWhiskerCategoryDataset();&lt;br /&gt;
        for (int i = 0; i &amp;lt; seriesCount; i++) {&lt;br /&gt;
            for (int j = 0; j &amp;lt; categoryCount; j++) {&lt;br /&gt;
                final List list = new ArrayList();&lt;br /&gt;
                // add some values...&lt;br /&gt;
                for (int k = 0; k &amp;lt; entityCount; k++) {&lt;br /&gt;
                    final double value1 = 10.0 + Math.random() * 3;&lt;br /&gt;
                    list.add(new Double(value1));&lt;br /&gt;
                    final double value2 = 11.25 + Math.random(); // concentrate values in the middle&lt;br /&gt;
                    list.add(new Double(value2));&lt;br /&gt;
                }&lt;br /&gt;
                LOGGER.debug(&amp;quot;Adding series &amp;quot; + i);&lt;br /&gt;
                LOGGER.debug(list.toString());&lt;br /&gt;
                dataset.add(list, &amp;quot;Series &amp;quot; + i, &amp;quot; Type &amp;quot; + j);&lt;br /&gt;
            }&lt;br /&gt;
            &lt;br /&gt;
        }&lt;br /&gt;
        return dataset;&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;
     * 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;
        //Log.getInstance().addTarget(new PrintStreamLogTarget(System.out));&lt;br /&gt;
        final BoxAndWhiskerDemo demo = new BoxAndWhiskerDemo(&amp;quot;Box-and-Whisker 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;
           &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>