<?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%2FInterval_Bar_Chart</id>
		<title>Java/Chart/Interval 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%2FInterval_Bar_Chart"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Interval_Bar_Chart&amp;action=history"/>
		<updated>2026-05-12T15:46:34Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Chart/Interval_Bar_Chart&amp;diff=8081&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Chart/Interval_Bar_Chart&amp;diff=8081&amp;oldid=prev"/>
				<updated>2010-06-01T06:52:33Z</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/Interval_Bar_Chart&amp;diff=8080&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/Interval_Bar_Chart&amp;diff=8080&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: Interval Bar Chart Demo 1 ==&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;
 * IntervalBarChartDemo1.java&lt;br /&gt;
 * --------------------------&lt;br /&gt;
 * (C) Copyright 2002-2004, by Jeremy Bowman and Contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * Original Author:  Jeremy Bowman.&lt;br /&gt;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);&lt;br /&gt;
 *&lt;br /&gt;
 * $Id: IntervalBarChartDemo1.java,v 1.16 2004/05/10 16:45:23 mungady Exp $&lt;br /&gt;
 *&lt;br /&gt;
 * Changes&lt;br /&gt;
 * -------&lt;br /&gt;
 * 29-Apr-2002 : Version 1, contributed by Jeremy Bowman.  Name changed to&lt;br /&gt;
 *               IntervalBarChartDemo, and the chart is displayed in a frame rather than&lt;br /&gt;
 *               saved to a file (DG);&lt;br /&gt;
 * 25-Jun-2002 : Removed unnecessary imports (DG);&lt;br /&gt;
 * 10-Oct-2002 : Fixed errors reported by Checkstyle (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.Font;&lt;br /&gt;
import java.text.DecimalFormat;&lt;br /&gt;
import org.jfree.chart.ChartFrame;&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.NumberTickUnit;&lt;br /&gt;
import org.jfree.chart.labels.ItemLabelAnchor;&lt;br /&gt;
import org.jfree.chart.labels.ItemLabelPosition;&lt;br /&gt;
import org.jfree.chart.plot.CategoryPlot;&lt;br /&gt;
import org.jfree.chart.plot.PlotOrientation;&lt;br /&gt;
import org.jfree.chart.renderer.category.IntervalBarRenderer;&lt;br /&gt;
import org.jfree.data.category.DefaultIntervalCategoryDataset;&lt;br /&gt;
import org.jfree.ui.TextAnchor;&lt;br /&gt;
/**&lt;br /&gt;
 * An interval bar chart.&lt;br /&gt;
 *&lt;br /&gt;
 * @author Jeremy Bowman&lt;br /&gt;
 */&lt;br /&gt;
public class IntervalBarChartDemo1 {&lt;br /&gt;
    /** The categories. */&lt;br /&gt;
    private static final String[] CATEGORIES = {&amp;quot;1&amp;quot;, &amp;quot;3&amp;quot;, &amp;quot;5&amp;quot;, &amp;quot;10&amp;quot;, &amp;quot;20&amp;quot;};&lt;br /&gt;
    /** The label font. */&lt;br /&gt;
    private static Font labelFont = null;&lt;br /&gt;
    /** The title font. */&lt;br /&gt;
    private static Font titleFont = null;&lt;br /&gt;
    /** The chart. */&lt;br /&gt;
    private JFreeChart chart = null;&lt;br /&gt;
    static {&lt;br /&gt;
        labelFont = new Font(&amp;quot;Helvetica&amp;quot;, Font.PLAIN, 10);&lt;br /&gt;
        titleFont = new Font(&amp;quot;Helvetica&amp;quot;, Font.BOLD, 14);&lt;br /&gt;
    }&lt;br /&gt;
    /**&lt;br /&gt;
     * Creates a new demo.&lt;br /&gt;
     */&lt;br /&gt;
    public IntervalBarChartDemo1() {&lt;br /&gt;
        DefaultIntervalCategoryDataset data = null;&lt;br /&gt;
        final double[][] lows = {{-.0315, .0159, .0306, .0453, .0557}};&lt;br /&gt;
        final double[][] highs = {{.1931, .1457, .1310, .1163, .1059}};&lt;br /&gt;
        data = new DefaultIntervalCategoryDataset(lows, highs);&lt;br /&gt;
        data.setCategoryKeys(CATEGORIES);&lt;br /&gt;
        final String title = &amp;quot;Strategie Sicherheit&amp;quot;;&lt;br /&gt;
        final String xTitle = &amp;quot;Zeitraum (in Jahren)&amp;quot;;&lt;br /&gt;
        final String yTitle = &amp;quot;Performance&amp;quot;;&lt;br /&gt;
        final CategoryAxis xAxis = new CategoryAxis(xTitle);&lt;br /&gt;
        xAxis.setLabelFont(titleFont);&lt;br /&gt;
        xAxis.setTickLabelFont(labelFont);&lt;br /&gt;
        xAxis.setTickMarksVisible(false);&lt;br /&gt;
        final NumberAxis yAxis = new NumberAxis(yTitle);&lt;br /&gt;
        yAxis.setLabelFont(titleFont);&lt;br /&gt;
        yAxis.setTickLabelFont(labelFont);&lt;br /&gt;
        yAxis.setRange(-0.2, 0.40);&lt;br /&gt;
        final DecimalFormat formatter = new DecimalFormat(&amp;quot;0.##%&amp;quot;);&lt;br /&gt;
        yAxis.setTickUnit(new NumberTickUnit(0.05, formatter));&lt;br /&gt;
        final IntervalBarRenderer renderer = new IntervalBarRenderer();&lt;br /&gt;
        renderer.setSeriesPaint(0, new Color(51, 102, 153));&lt;br /&gt;
//        renderer.setLabelGenerator(new IntervalCategoryLabelGenerator());&lt;br /&gt;
        renderer.setItemLabelsVisible(true);&lt;br /&gt;
        renderer.setItemLabelPaint(Color.white);&lt;br /&gt;
        final ItemLabelPosition p = new ItemLabelPosition(&lt;br /&gt;
            ItemLabelAnchor.CENTER, TextAnchor.CENTER&lt;br /&gt;
        );&lt;br /&gt;
        renderer.setPositiveItemLabelPosition(p);&lt;br /&gt;
        &lt;br /&gt;
        final CategoryPlot plot = new CategoryPlot(data, xAxis, yAxis, renderer);&lt;br /&gt;
        plot.setBackgroundPaint(Color.lightGray);&lt;br /&gt;
        plot.setOutlinePaint(Color.white);&lt;br /&gt;
        plot.setOrientation(PlotOrientation.VERTICAL);&lt;br /&gt;
        &lt;br /&gt;
        this.chart = new JFreeChart(title, titleFont, plot, false);&lt;br /&gt;
        this.chart.setBackgroundPaint(Color.white);&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;
     * Returns the chart.&lt;br /&gt;
     *&lt;br /&gt;
     * @return the chart.&lt;br /&gt;
     */&lt;br /&gt;
    public JFreeChart getChart() {&lt;br /&gt;
        return this.chart;&lt;br /&gt;
    }&lt;br /&gt;
    /**&lt;br /&gt;
     * Starting point for the demo.&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 IntervalBarChartDemo1 sample = new IntervalBarChartDemo1();&lt;br /&gt;
        final JFreeChart chart = sample.getChart();&lt;br /&gt;
        final ChartFrame frame = new ChartFrame(&amp;quot;Interval Bar Chart Demo&amp;quot;, chart);&lt;br /&gt;
        frame.pack();&lt;br /&gt;
        frame.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>