Chart Cheatsheet

$ cat testdata/bar.csv

Chrome	57.1
Safari 14.5
Firefox 11.1
Internet Explorer & Edge 9.7
Opera 3.1

$ cat testdata/bar.csv | chart bar

$ cat testdata/categorical-line.csv

Q1 2015	5188
Q2 2015 5608
Q3 2015 5807
Q4 2015 6774
Q1 2016 6272
Q2 2016 6994
Q3 2016 6778
Q4 2016 7883

$ cat testdata/categorical-line.csv | chart line --zero-based

$ cat testdata/denormalised-scatter-line.csv

server1	2017-07-12	66
server1 2017-07-13 353
server1 2017-07-15 47
server2 2017-07-12 1226
server2 2017-07-13 3359
server2 2017-07-14 691
server2 2017-07-15 122
server3 2017-07-13 2
server3 2017-07-14 101
server3 2017-07-15 9
server4 2017-07-12 49664
server4 2017-07-13 439
server4 2017-07-14 3518

$ cat testdata/denormalised-scatter-line.csv | chart line log --date-format 2006-01-02

$ cat testdata/freq.csv

Trump
Hillary
Hillary
Trump
Stein
Trump
Johnson

$ cat testdata/freq.csv | chart 

$ cat testdata/line-time.csv

January	49	55
February 54 53
March 61 50
April 69 50
May 73 49

$ cat testdata/line-time.csv | chart line --date-format January

$ cat testdata/line.csv

0,1.1,2
1,2,3
2,6,4
4,4.6,5
5,5,6

$ cat testdata/line.csv | chart line ,

$ cat testdata/multi-bar.csv

January	50	25	25
February 40 35 25
March 30 55 15
April 25 55 20

$ cat testdata/multi-bar.csv | chart bar

$ cat testdata/pie.csv

Chrome	57.1
Safari 14.5
Firefox 11.1
Internet Explorer & Edge 9.7
Opera 3.1

$ cat testdata/pie.csv | chart 

$ cat testdata/scatter-rad-lab.csv

14.2	215	70	Nestle
16.4 325 70 Häagen-Dazs
11.9 185 25 Nestle
15.2 332 73 Ben & Jerry\'s
18.5 406 81 Häagen-Dazs
22.1 522 90 Nestle
19.4 412 83 Häagen-Dazs
25.1 614 96 Ben & Jerry\'s
23.4 544 91 Ben & Jerry\'s
18.1 421 85 Häagen-Dazs
22.6 445 86 Häagen-Dazs
17.2 408 82 Nestle

$ cat testdata/scatter-rad-lab.csv | chart scatter

$ cat testdata/scatter-rad.csv

14.2	215	70
16.4 325 70
11.9 185 25
15.2 332 73
18.5 406 81
22.1 522 90
19.4 412 83
25.1 614 96
23.4 544 91
18.1 421 85
22.6 445 86
17.2 408 82

$ cat testdata/scatter-rad.csv | chart scatter --title "Ice cream sales" -x C -y $

$ cat testdata/scatter.csv

14.2	215
16.4 325
11.9 185
15.2 332
18.5 406
22.1 522
19.4 412
25.1 614
23.4 544
18.1 421
22.6 445
17.2 408

$ cat testdata/scatter.csv | chart scatter --title "Ice cream sales" -x C -y $