Skip to content

Commit

Permalink
Adds line chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Gappa committed Jan 29, 2017
1 parent 9e3354d commit 7601ef9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ curl -u $USER:$ACCESS_TOKEN -s "https://api.github.com/user/repos" | \

![Bar chart of a Github user's lines of code per language (requires setting up an Access Token)](img/bar.png?v=1)

- Line chart of the stargazers of this repo over time up to Jan 2017 (received some attention after the publication of [this](https://movio.co/blog/migrate-Scala-to-Go/) blogpost)
```
curl -s "https://api.github.com/repos/marianogappa/chart/stargazers?page=1&per_page=100" -H"Accept: application/vnd.github.v3.star+json" | jq --raw-output 'map(.starred_at) | .[]' | awk '{print NR "\t" $0}' | chart line --date-format 2006-01-02T15:04:05Z
```

![Line chart of Github stargazers of this repo over time](img/line.png?v-1)

## Charting MySQL output

`chart` works great with [sql](https://github.com/MarianoGappa/sql), or with any `mysql -Nsre '...'` query.
Expand Down

0 comments on commit 7601ef9

Please sign in to comment.