Skip to content
Snippets Groups Projects
Commit 8c7affb8 authored by Tim Molter's avatar Tim Molter
Browse files

minor tweaks

parent 7afb5b60
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,13 @@ public class XChartDemo extends JPanel implements TreeSelectionListener {
// leaves
DefaultMutableTreeNode chart = null;
// Area category
category = new DefaultMutableTreeNode("Area Charts");
top.add(category);
chart = new DefaultMutableTreeNode(new ChartInfo("AreaChart01 - 3-Series", new AreaChart01().getChart()));
category.add(chart);
// First category
category = new DefaultMutableTreeNode("Line Charts");
top.add(category);
......@@ -188,13 +195,6 @@ public class XChartDemo extends JPanel implements TreeSelectionListener {
chart = new DefaultMutableTreeNode(new ChartInfo("BarChart05 - Basic Bar Chart", new BarChart05().getChart()));
category.add(chart);
// Area category
category = new DefaultMutableTreeNode("Area Charts");
top.add(category);
chart = new DefaultMutableTreeNode(new ChartInfo("AreaChart01 - 3-Series", new AreaChart01().getChart()));
category.add(chart);
// Theme category
category = new DefaultMutableTreeNode("Chart Themes");
top.add(category);
......
......@@ -52,7 +52,7 @@ public class ThemeChart01 implements ExampleChart {
}
// Customize Chart
chart.setChartTitle("ThemeChart01");
chart.setChartTitle("XChartTheme");
chart.setXAxisTitle("X");
chart.setYAxisTitle("Y");
......
......@@ -43,7 +43,7 @@ public class ThemeChart02 implements ExampleChart {
public Chart getChart() {
// Create Chart
Chart chart = new ChartBuilder().width(800).height(600).theme(new GGPlot2Theme()).title("ThemeChart02").xAxisTitle("X").yAxisTitle("Y").build();
Chart chart = new ChartBuilder().width(800).height(600).theme(new GGPlot2Theme()).title("GGPlot2Theme").xAxisTitle("X").yAxisTitle("Y").build();
chart.addSeries("vertical", new double[] { 1, 1 }, new double[] { -10, 10 });
chart.addSeries("horizontal", new double[] { -10, 10 }, new double[] { 0, 0 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment