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

update readme [ci skip]

parent 28dfae66
No related branches found
No related tags found
No related merge requests found
## [![XChart](https://raw.githubusercontent.com/timmolter/XChart/develop/etc/XChart_64_64.png)](http://xeiam.com/xchart) XChart ## [![XChart](https://raw.githubusercontent.com/timmolter/XChart/develop/etc/XChart_64_64.png)](http://xeiam.com/xchart) XChart
A Simple Charting Library for Java A Simple Charting Library for Java
## Description ## Description
XChart is a light-weight and convenient library for plotting data. XChart is a light-weight and convenient library for plotting data.
Its focus is on simplicity and ease-of-use, requiring only two lines of code to save or display a basic default chart. Its focus is on simplicity and ease-of-use, requiring only two lines of code to save or display a basic default chart.
...@@ -10,6 +12,8 @@ Usage is very simple: Create a Chart instance, add a series of data to it, and e ...@@ -10,6 +12,8 @@ Usage is very simple: Create a Chart instance, add a series of data to it, and e
## Example ## Example
```java
double[] xData = new double[] { 0.0, 1.0, 2.0 }; double[] xData = new double[] { 0.0, 1.0, 2.0 };
double[] yData = new double[] { 2.0, 1.0, 0.0 }; double[] yData = new double[] { 2.0, 1.0, 0.0 };
...@@ -24,30 +28,33 @@ Usage is very simple: Create a Chart instance, add a series of data to it, and e ...@@ -24,30 +28,33 @@ Usage is very simple: Create a Chart instance, add a series of data to it, and e
// or save it in high-res // or save it in high-res
BitmapEncoder.saveBitmapWithDPI(chart, "./Sample_Chart_300_DPI", BitmapFormat.PNG, 300); BitmapEncoder.saveBitmapWithDPI(chart, "./Sample_Chart_300_DPI", BitmapFormat.PNG, 300);
```
Now go ahead and [study some more examples](http://xeiam.com/xchart-example-code/), [download the thing](http://xeiam.com/xchart-change-log) and [provide feedback](https://github.com/timmolter/XChart/issues). Now go ahead and [study some more examples](http://xeiam.com/xchart-example-code/), [download the thing](http://xeiam.com/xchart-change-log) and [provide feedback](https://github.com/timmolter/XChart/issues).
## Features ## Features
* No required additional dependencies
* ~100KB Jar * [x] No required additional dependencies
* Line charts * [x] ~100KB Jar
* Scatter charts * [x] Line charts
* Area charts * [x] Scatter charts
* Bar charts * [x] Area charts
* Histogram charts * [x] Bar charts
* Error bars * [x] Histogram charts
* Logarithmic axes * [x] Error bars
* Date and category X-Axis * [x] Logarithmic axes
* Multiple series * [x] Date and category X-Axis
* Extensive customization * [x] Multiple series
* Themes - XChart, GGPlot2, MATLAB * [x] Extensive customization
* Right-click, Save-As... * [x] Themes - XChart, GGPlot2, MATLAB
* User-defined axes range * [x] Right-click, Save-As...
* Custom legend placement * [x] User-defined axes range
* CSV import and export * [x] Custom legend placement
* High resolution chart export * [x] CSV import and export
* Real-time charts * [x] High resolution chart export
* [x] Java 6 and up * [x] Export as PNG, JPG, BMP, GIF, SVG, EPS, and PDF
* [x] Real-time charts
* [x] Java 6 and up
## Getting Started ## Getting Started
...@@ -61,14 +68,17 @@ The XChart release artifacts are hosted on Maven Central. ...@@ -61,14 +68,17 @@ The XChart release artifacts are hosted on Maven Central.
Add the XChart library as a dependency to your pom.xml file: Add the XChart library as a dependency to your pom.xml file:
```xml
<dependency> <dependency>
<groupId>com.xeiam.xchart</groupId> <groupId>com.xeiam.xchart</groupId>
<artifactId>xchart</artifactId> <artifactId>xchart</artifactId>
<version>2.4.3</version> <version>2.4.3</version>
</dependency> </dependency>
```
For snapshots, add the following to your pom.xml file: For snapshots, add the following to your pom.xml file:
```xml
<repository> <repository>
<id>sonatype-oss-snapshot</id> <id>sonatype-oss-snapshot</id>
<snapshots/> <snapshots/>
...@@ -80,6 +90,7 @@ For snapshots, add the following to your pom.xml file: ...@@ -80,6 +90,7 @@ For snapshots, add the following to your pom.xml file:
<artifactId>xchart</artifactId> <artifactId>xchart</artifactId>
<version>2.4.4-SNAPSHOT</version> <version>2.4.4-SNAPSHOT</version>
</dependency> </dependency>
```
Snapshots can be manually downloaded from Sonatyope: [https://oss.sonatype.org/content/groups/public/com/xeiam/xchart/xchart/](https://oss.sonatype.org/content/groups/public/com/xeiam/xchart/xchart/) Snapshots can be manually downloaded from Sonatyope: [https://oss.sonatype.org/content/groups/public/com/xeiam/xchart/xchart/](https://oss.sonatype.org/content/groups/public/com/xeiam/xchart/xchart/)
...@@ -97,8 +108,9 @@ Snapshots can be manually downloaded from Sonatyope: [https://oss.sonatype.org/c ...@@ -97,8 +108,9 @@ Snapshots can be manually downloaded from Sonatyope: [https://oss.sonatype.org/c
mvn license:remove mvn license:remove
## Running Demo ## Running Demo
cd /path/to/xchart-demo/jar/ cd /path/to/xchart-demo/jar/
java -cp xchart-demo-2.4.2.jar:xchart-2.4.2.jar com.xeiam.xchart.demo.XChartDemo java -cp xchart-demo-2.4.3.jar:xchart-2.4.3.jar com.xeiam.xchart.demo.XChartDemo
## Bugs ## Bugs
Please report any bugs or submit feature requests to [XChart's Github issue tracker](https://github.com/timmolter/XChart/issues). Please report any bugs or submit feature requests to [XChart's Github issue tracker](https://github.com/timmolter/XChart/issues).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment