source: trunk/src/org/expeditee/items/widgets/charts/Bar.java@ 204

Last change on this file since 204 was 204, checked in by ra33, 16 years ago

Added bar chart for single categories

File size: 546 bytes
Line 
1package org.expeditee.items.widgets.charts;
2
3import org.expeditee.items.Text;
4import org.jfree.chart.ChartFactory;
5import org.jfree.chart.JFreeChart;
6import org.jfree.chart.plot.PlotOrientation;
7
8public class Bar extends AbstractCategory {
9
10 public Bar(Text source, String[] args) {
11 super(source, args);
12 }
13
14 @Override
15 protected JFreeChart createNewChart() {
16 return ChartFactory.createBarChart(DEFAULT_TITLE, "X-Axis", "Y-Axis",
17 getData(), PlotOrientation.VERTICAL, true, // legend?
18 true, // tooltips?
19 false // URLs?
20 );
21 }
22}
Note: See TracBrowser for help on using the repository browser.