Skip to content

Commit

Permalink
Adds images for the use case examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Gappa committed Aug 28, 2016
1 parent c9c8683 commit 2154bfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ chart [pie|bar|log|' '|';'|','|'\t'|-t %title%|--title %title%]
make && history | awk '{print $2}' | chart
```

![Pie chart of your most used terminal commands](img/pie.png?v=1)

- Bar chart of today's currency value against USD, in logarithmic scale
```
curl -s http://api.fixer.io/latest?base=USD | jq -r ".rates | to_entries| \
map(\"\(.key)\t\(.value|tostring)\")|.[]" | chart bar log -t "Currency value against USD"
```

![Bar chart of today's currency value against USD, in logarithmic scale](img/bar-log.png?v=1)

- Bar chart of a Github user's lines of code per language (requires setting up an Access Token)
```
USER=???
Expand All @@ -41,6 +45,8 @@ curl -u $USER:$ACCESS_TOKEN -s "https://api.github.com/user/repos" | \
awk '{print $2 "\t" $1}' | sort -nr | chart bar
```

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

- MySQL query output charting

TODO
Expand Down

0 comments on commit 2154bfc

Please sign in to comment.