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

pom update

parent 060dedf2
Branches
No related tags found
No related merge requests found
......@@ -7,19 +7,19 @@
<packaging>pom</packaging>
<name>XChart Parent</name>
<description>Basic Charts for Java Applications</description>
<url>http://xeiam.com/xchart.jsp</url>
<url>http://knowm.org/open-source/xchart</url>
<inceptionYear>2011</inceptionYear>
<organization>
<name>Xeiam, LLC</name>
<url>http://xeiam.com/</url>
</organization>
<organization>
<name>Knowm Inc.</name>
<url>http://knowm.org/open-source/</url>
</organization>
<developers>
<developer>
<name>Tim Molter</name>
</developer>
</developers>
<developers>
<developer>
<name>Tim Molter</name>
</developer>
</developers>
<licenses>
<license>
......
/**
* Copyright 2011 - 2015 Xeiam LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xeiam.xchart.standalone;
import java.io.IOException;
import com.xeiam.xchart.Chart;
import com.xeiam.xchart.QuickChart;
import com.xeiam.xchart.VectorGraphicsEncoder;
import com.xeiam.xchart.VectorGraphicsEncoder.VectorGraphicsFormat;
/**
* @author timmolter
*/
public class VectorGraphicsTest {
public static void main(String[] args) throws IOException {
double[] xData = new double[] { 0.0, 1.0, 2.0 };
double[] yData = new double[] { 2.0, 1.0, 0.0 };
// Create Chart
Chart chart = QuickChart.getChart("Sample Chart", "X", "Y", "y(x)", xData, yData);
VectorGraphicsEncoder.saveVectorGraphic(chart, "", VectorGraphicsFormat.PDF);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment