diff --git a/README.md b/README.md index 57b84fb2f28db7ed17d04dc063efb7c3d1159d71..d7f77c843d71253754f5205ea830e1c9dd776a88 100644 --- a/README.md +++ b/README.md @@ -74,18 +74,24 @@ The different Stylers contain chart styling methods specific to the correspondin ### Chart_XY + + `Chart_XY` charts take Date or Number data types for the X-Axis and Number data types for the Y-Axis. For both axes, the tick marks are auto generated to span the range and domain of the data in evenly-spaced intervals. Series render styles include: `Line`, `Scatter` and `Area`. ### Chart_Category + + `Chart_Category` charts take Date, Number or String data types for the X-Axis and Number data types for the Y-Axis. For the X-Axis, each category is given its own tick mark. Series render styles include: `Bar`, `Line`, `Scatter`, `Area` and `Stick`. ### Chart_Pie + + `Chart_Pie` charts take String data types for the pie slice name and Number data types for the pie slice value. Series render styles include: `Pie` and in the near future `Donut`. diff --git a/etc/Chart_Category.png b/etc/Chart_Category.png new file mode 100644 index 0000000000000000000000000000000000000000..68bef4cfa88a7b871c4b15c32b4857d10fb8dc3b Binary files /dev/null and b/etc/Chart_Category.png differ diff --git a/etc/Chart_Pie.png b/etc/Chart_Pie.png new file mode 100644 index 0000000000000000000000000000000000000000..3af112b3b0bf45cd9ab8dd3317b23cedac2a9522 Binary files /dev/null and b/etc/Chart_Pie.png differ diff --git a/etc/Chart_XY.png b/etc/Chart_XY.png new file mode 100644 index 0000000000000000000000000000000000000000..4032d2635b8c0f7a557ab6a82b83c2730d382f85 Binary files /dev/null and b/etc/Chart_XY.png differ diff --git a/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart01.java b/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart01.java index acb6483502957e6931639141cf43b0753e77660d..8fa9264eda1f30f51cb4804403dfeb98843409c7 100644 --- a/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart01.java +++ b/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart01.java @@ -42,7 +42,7 @@ public class PieChart01 implements ExampleChart<Chart_Pie> { public Chart_Pie getChart() { // Create Chart - Chart_Pie chart = new ChartBuilder_Pie().width(400).height(500).title(getClass().getSimpleName()).build(); + Chart_Pie chart = new ChartBuilder_Pie().width(800).height(600).title(getClass().getSimpleName()).build(); // Customize Chart diff --git a/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart03.java b/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart03.java index c9e8de4a3903943488216dce89993e8695af162f..99160df44fe45fc0758bae46b56b341aeb85724e 100644 --- a/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart03.java +++ b/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/pie/PieChart03.java @@ -45,7 +45,7 @@ public class PieChart03 implements ExampleChart<Chart_Pie> { public Chart_Pie getChart() { // Create Chart - Chart_Pie chart = new ChartBuilder_Pie().width(400).height(500).title(getClass().getSimpleName()).theme(ChartTheme.GGPlot2).build(); + Chart_Pie chart = new ChartBuilder_Pie().width(800).height(600).title(getClass().getSimpleName()).theme(ChartTheme.GGPlot2).build(); // Customize Chart chart.getStyler().setLegendVisible(false);