Google


Thursday, January 13, 2011

How to hack Google charts

I ran a comparison on Google Trends and this is the location of the chart png. As you can see it has lots of colours in there and labels.

http://chart.apis.google.com/chart?cht=lc&chd=e:2Y2Y2Y2Y2Y2Y2Y2Y,B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6,nBnB,RRRR,________________________________AYBDBUBMBNBbByCJCzCcDlDrETFOF1GyGjHSHoJXKmLrLnMAMmMqOZQiUkTcSzUKVZbKaqe3nek4hK,AYAYAYAYAYAYAYAYAYAYAYAYAYAYAYAY______________________________________________________________________________,AVATARAKAcATASBeDzBIBSBBAkAdAiAyA2A2A.BTA6A4A1BGAwA8A2BHB7BkCiCnCcDDDiE5FZITIpHqGHHkIQHnJwJ1I5PDMWL8O3PNSyYecW,,MUMgN7OSO2QFPjQYQwQeQHRXRrSYTRTtUxVvVkV8T8UmU0UsVGSxRWSITyXFWwXgXMXmV8XKYvY7XsYCYnYQbSbSa6axa1Z3Z4dXYiUKWsXSYS,&chds=0.0,2100000.0&chs=580x188&chco=ffffff00,ffffff00,ffffff00,ffffff00,4684eeff,4684eeff,dc3912ff,4684eeff,ff9900ff,4684eeff&chls=1.0,1.0,0.0%7C1.0,1.0,0.0%7C1.0,1.0,0.0%7C1.0,1.0,0.0%7C1.75,1.0,0.0%7C1.5,3.0,3.0%7C1.75,1.0,0.0%7C1.5,3.0,3.0%7C1.75,1.0,0.0%7C1.5,3.0,3.0&chxt=x&chxr=0,0.0,100.0&chxl=0:%7C%7CJan+2009%7C%7C%7CApr+2009%7C%7C%7CJul+2009%7C%7C%7COct+2009%7C%7C%7CJan+2010%7C%7C%7CApr+2010%7C%7C%7CJul+2010%7C%7C%7COct+2010%7C%7C%7C&chxs=0,443322ff,9.0,0.0&chm=v,443322ff,1,-1,1%7Ct+Daily+Unique+Visitors,676767ff,0,0,10,1%7Ct+Google+Trends,676767ff,0,6,10,1%7Ct+1.4+M,676767ff,2,0,10,1%7Ct+700+K,676767ff,3,0,10,1&chg=12.0,33.33,1.0,1.0,4.0

For instance I could change the 'Google Trends' in the top right to my name. I tried changing the tick at 700 to 600 but that changes just the label not the data. You could try to increase the dimensions from 580x188 to something bigger.

http://chart.apis.google.com/chart?cht=lc&chd=e:2Y2Y2Y2Y2Y2Y2Y2Y,B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6B6,nBnB,RRRR,________________________________AYBDBUBMBNBbByCJCzCcDlDrETFOF1GyGjHSHoJXKmLrLnMAMmMqOZQiUkTcSzUKVZbKaqe3nek4hK,AYAYAYAYAYAYAYAYAYAYAYAYAYAYAYAY______________________________________________________________________________,AVATARAKAcATASBeDzBIBSBBAkAdAiAyA2A2A.BTA6A4A1BGAwA8A2BHB7BkCiCnCcDDDiE5FZITIpHqGHHkIQHnJwJ1I5PDMWL8O3PNSyYecW,,MUMgN7OSO2QFPjQYQwQeQHRXRrSYTRTtUxVvVkV8T8UmU0UsVGSxRWSITyXFWwXgXMXmV8XKYvY7XsYCYnYQbSbSa6axa1Z3Z4dXYiUKWsXSYS,&chds=0.0,2100000.0&chs=580x188&chco=ffffff00,ffffff00,ffffff00,ffffff00,4684eeff,4684eeff,dc3912ff,4684eeff,ff9900ff,4684eeff&chls=1.0,1.0,0.0|1.0,1.0,0.0|1.0,1.0,0.0|1.0,1.0,0.0|1.75,1.0,0.0|1.5,3.0,3.0|1.75,1.0,0.0|1.5,3.0,3.0|1.75,1.0,0.0|1.5,3.0,3.0&chxt=x&chxr=0,0.0,100.0&chxl=0:||Jan+2009|||Apr+2009|||Jul+2009|||Oct+2009|||Jan+2010|||Apr+2010|||Jul+2010|||Oct+2010|||&chxs=0,443322ff,9.0,0.0&chm=v,443322ff,1,-1,1|t+Daily+Unique+Visitors,676767ff,0,0,10,1|t+Dirk+nachbar,676767ff,0,6,10,1|t+1.4+M,676767ff,2,0,10,1|t+700+K,676767ff,3,0,10,1&chg=12.0,33.33,1.0,1.0,4.0

No comments: