New to python - parse data into Google Charts

alistair alistair.calder at gmail.com
Fri Sep 3 19:52:01 CEST 2010


I'm new to python and my programming years are a ways behind me, so I
was looking for some help in parsing a file into a chart using the
Google Charts API.

The file is simply a text file containing: Date, Total Accesses,
Unique Accesses.

I'd like date across the bottom, access numbers on the vertical axis
and lines for the amounts.

I'm not even really sure how to get started if someone wants to give
me some pointers or throw together a short example, I would greatly
appreciate it.

Here is a sample of the data:

2010-08-01, 2324, 1800
2010-08-02, 3832, 2857
2010-08-03, 7916, 4875
2010-08-04, 7004, 4247
2010-08-05, 6392, 4026
2010-08-06, 5396, 3513
2010-08-07, 3238, 2285
2010-08-08, 3579, 2588
2010-08-09, 7710, 4867
2010-08-10, 6662, 4123
2010-08-11, 6524, 4045
2010-08-12, 6438, 3965
2010-08-13, 5472, 3543
2010-08-14, 3059, 2193
2010-08-15, 3255, 2379
2010-08-16, 7149, 4482
2010-08-17, 6727, 4247
2010-08-18, 6989, 4328
2010-08-19, 6738, 4192
2010-08-20, 5929, 3816
2010-08-21, 3245, 2302
2010-08-22, 4091, 2900
2010-08-23, 8237, 4857
2010-08-24, 7895, 4575
2010-08-25, 7788, 4564
2010-08-26, 7616, 4527
2010-08-27, 6671, 4159
2010-08-28, 3595, 2484
2010-08-29, 4377, 2991
2010-08-30, 9238, 5427
2010-08-31, 9274, 5406



More information about the Python-list mailing list