Skip to content
Snippets Groups Projects
Commit 911011c8 authored by timmolter's avatar timmolter
Browse files

updated

parent 21b804e4
No related branches found
No related tags found
No related merge requests found
dist/
javadoc/
bin/
\ No newline at end of file
......@@ -25,22 +25,22 @@ import com.xeiam.xcharts.Chart;
*/
public class Example1 {
public static void main(String[] args) {
public static void main(String[] args) {
double[] xData = { 0.0, 1.0, 2.0 };
double[] yData = { 0.0, 1.0, 2.0 };
double[] xData = { 0.0, 1.0, 2.0 };
double[] yData = { 0.0, 1.0, 2.0 };
// Create Chart
Chart chart = new Chart(500, 400);
chart.setChartTitle("Sample Chart");
chart.setXAxisTitle("X");
chart.setYAxisTitle("Y");
chart.addSeries("y(x)", xData, yData);
// Create Chart
Chart chart = new Chart(500, 400);
chart.setChartTitle("Sample Chart");
chart.setXAxisTitle("X");
chart.setYAxisTitle("Y");
chart.addSeries("y(x)", xData, yData);
try {
BitmapEncoder.savePNG(chart, "/test/Sample_Chart.png");
} catch (Exception e) {
e.printStackTrace();
}
try {
BitmapEncoder.savePNG(chart, "./Sample_Chart.png");
} catch (Exception e) {
e.printStackTrace();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment