Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hogelog/line-chart-view

Android chart library for time series data
https://github.com/hogelog/line-chart-view

Last synced: 24 days ago
JSON representation

Android chart library for time series data

Awesome Lists containing this project

README

        

# line-chart-view [![Travis CI Status](https://travis-ci.org/hogelog/line-chart-view.svg)](https://travis-ci.org/hogelog/line-chart-view) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.hogel/line-chart-view/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.hogel/line-chart-view)

Android line chart view library.

## Usage
### Add dependency
#### Gradle

```groovy
dependencies {
compile 'org.hogel:line-chart-view:0.2.0'
}
```

#### Maven

```xml

    org.hogel
    line-chart-view
    0.2.0

```

### LineChartView

```java
List points = new ArrayList();
points.add(new LineChartView.Point(-17, -100));
points.add(new LineChartView.Point(4, 200));
points.add(new LineChartView.Point(5, 400));
points.add(new LineChartView.Point(6, 1100));
points.add(new LineChartView.Point(7, 700));

LineChartView lineChartView = new LineChartView(this, points);

chartContainer.addView(lineChartView);
```

![Line Chart](https://raw.githubusercontent.com/hogelog/line-chart-view/master/line-chart-view.png)

## Example
See [line-chart-view-demo](https://github.com/hogelog/line-chart-view/tree/master/line-chart-view-demo)

## API
See [Javadoc](http://hogelog.github.io/line-chart-view/javadoc/)

## Development version
Use sonatype snapshot repository.

```groovy
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}

dependencies {
compile 'org.hogel:line-chart-view:0.2.1-SNAPSHOT'
}
```