<?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%2FCategory_Step_Chart</id>
		<title>Java/Chart/Category Step Chart - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FChart%2FCategory_Step_Chart"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Category_Step_Chart&amp;action=history"/>
		<updated>2026-04-05T21:29:53Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Chart/Category_Step_Chart&amp;diff=8005&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Category_Step_Chart&amp;diff=8005&amp;oldid=prev"/>
				<updated>2010-06-01T06:52:13Z</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://jexp.ru/index.php?title=Java/Chart/Category_Step_Chart&amp;diff=8004&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/Category_Step_Chart&amp;diff=8004&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: Category Step 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;
 * 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;
 * CategoryStepRendererDemo.java&lt;br /&gt;
 * -----------------------------&lt;br /&gt;
 * (C) Copyright 2004, by Object Refinery Limited and Contributors.&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: CategoryStepChartDemo.java,v 1.2 2004/04/26 19:11:53 taqua Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Changes&lt;br /&gt;
 * -------&lt;br /&gt;
 * 21-Apr-2004 : Version 1 (DG);&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
package org.jfree.chart.demo;&lt;br /&gt;
import java.awt.Color;&lt;br /&gt;
import java.awt.Dimension;&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.renderer.category.CategoryItemRenderer;&lt;br /&gt;
import org.jfree.chart.renderer.category.CategoryStepRenderer;&lt;br /&gt;
import org.jfree.data.category.CategoryDataset;&lt;br /&gt;
import org.jfree.data.general.DatasetUtilities;&lt;br /&gt;
import org.jfree.ui.ApplicationFrame;&lt;br /&gt;
import org.jfree.ui.RefineryUtilities;&lt;br /&gt;
import org.jfree.ui.Spacer;&lt;br /&gt;
/**&lt;br /&gt;
 * A simple demonstration application showing how to create an area chart using data from a&lt;br /&gt;
 * {@link CategoryDataset}.&lt;br /&gt;
 *&lt;br /&gt;
 */&lt;br /&gt;
public class CategoryStepChartDemo extends ApplicationFrame {&lt;br /&gt;
    /**&lt;br /&gt;
     * Creates a new demo application.&lt;br /&gt;
     *&lt;br /&gt;
     * @param title  the frame title.&lt;br /&gt;
     */&lt;br /&gt;
    public CategoryStepChartDemo(final String title) {&lt;br /&gt;
        super(title);&lt;br /&gt;
        // create a dataset...&lt;br /&gt;
        final double[][] data = new double[][] {&lt;br /&gt;
            {1.0, 4.0, 3.0, 5.0, 5.0, 7.0, 7.0, 8.0},&lt;br /&gt;
            {5.0, 7.0, 6.0, 8.0, 4.0, 4.0, 2.0, 1.0},&lt;br /&gt;
            {4.0, 3.0, 2.0, 3.0, 6.0, 3.0, 4.0, 3.0}&lt;br /&gt;
        };&lt;br /&gt;
        final CategoryDataset dataset = DatasetUtilities.createCategoryDataset(&lt;br /&gt;
            &amp;quot;Series &amp;quot;, &amp;quot;Type &amp;quot;, data&lt;br /&gt;
        );&lt;br /&gt;
        // create the chart...&lt;br /&gt;
        final JFreeChart chart = createChart(dataset);&lt;br /&gt;
        final ChartPanel chartPanel = new ChartPanel(chart);&lt;br /&gt;
        chartPanel.setPreferredSize(new Dimension(500, 270));&lt;br /&gt;
        chartPanel.setEnforceFileExtensions(false);&lt;br /&gt;
        &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 chart.&lt;br /&gt;
     * &lt;br /&gt;
     * @param dataset  the dataset.&lt;br /&gt;
     * &lt;br /&gt;
     * @return The chart.&lt;br /&gt;
     */&lt;br /&gt;
    private JFreeChart createChart(final CategoryDataset dataset) {&lt;br /&gt;
            &lt;br /&gt;
        final CategoryItemRenderer renderer = new CategoryStepRenderer(true);&lt;br /&gt;
        final CategoryAxis domainAxis = new CategoryAxis(&amp;quot;Category&amp;quot;);&lt;br /&gt;
        final ValueAxis rangeAxis = new NumberAxis(&amp;quot;Value&amp;quot;);&lt;br /&gt;
        final CategoryPlot plot = new CategoryPlot(dataset, domainAxis, rangeAxis, renderer);&lt;br /&gt;
        final JFreeChart chart = new JFreeChart(&amp;quot;Category Step Chart&amp;quot;, plot);&lt;br /&gt;
 &lt;br /&gt;
        // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...&lt;br /&gt;
        // set the background color for the chart...&lt;br /&gt;
//        final StandardLegend legend = (StandardLegend) chart.getLegend();&lt;br /&gt;
  //      legend.setAnchor(StandardLegend.SOUTH);&lt;br /&gt;
        chart.setBackgroundPaint(Color.white);&lt;br /&gt;
        &lt;br /&gt;
//        plot.setAxisOffset(new Spacer(Spacer.ABSOLUTE, 5.0, 5.0, 5.0, 5.0));&lt;br /&gt;
        plot.setBackgroundPaint(Color.lightGray);&lt;br /&gt;
        plot.setDomainGridlinesVisible(true);&lt;br /&gt;
        plot.setDomainGridlinePaint(Color.white);&lt;br /&gt;
        plot.setRangeGridlinesVisible(true);&lt;br /&gt;
        plot.setRangeGridlinePaint(Color.white);&lt;br /&gt;
        &lt;br /&gt;
        domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45);&lt;br /&gt;
        domainAxis.setLowerMargin(0.0);&lt;br /&gt;
        domainAxis.setUpperMargin(0.0);&lt;br /&gt;
        domainAxis.addCategoryLabelToolTip(&amp;quot;Type 1&amp;quot;, &amp;quot;The first type.&amp;quot;);&lt;br /&gt;
        domainAxis.addCategoryLabelToolTip(&amp;quot;Type 2&amp;quot;, &amp;quot;The second type.&amp;quot;);&lt;br /&gt;
        domainAxis.addCategoryLabelToolTip(&amp;quot;Type 3&amp;quot;, &amp;quot;The third type.&amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());&lt;br /&gt;
        rangeAxis.setLabelAngle(0 * Math.PI / 2.0);&lt;br /&gt;
        // OPTIONAL CUSTOMISATION COMPLETED.&lt;br /&gt;
        &lt;br /&gt;
        return chart;&lt;br /&gt;
        &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 CategoryStepChartDemo demo = new CategoryStepChartDemo(&amp;quot;Category Step Renderer 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>