Took my first delve into google charts today and it was the balls. Gathered a bunch of data and had google charted it for me, all in less than an hour. Needed to find the number of occurrences of a problem one of our logging facilities was having per day and figure out if they had been declining since I made a change last week. I already had a script to give me the number of occurrences per day, so all I did was:
- use awk to give me a comma separated list of data points (187,138,163,88,90,203,235,131,140,67,137,83,131,156,89,220,291,140,22,21,422,103,179,113,383,84,134,193,141,86,194,74,148,242,240,368,94,186,20,20,170,223,114,40,21,315,53,56,125,155,140,30)
- set the chart type: cht=lc (line chart)
- set the size: chs=600×300
- set what axes to display: chxt=x,y
- set what labels to display on the axes: chxl=0:|Nov|Dec|Jan|1:|0|250|500
- set where to display the labels: chxp=1,0,50,98|0,0,40,84
- set the dimensions: chds=0,500
I ended up with this: