Last month, I used HC to draw a heart. Now, I am using Google Chart API to do the same thing and having a prettier heart!

Image source url:

http://chart.apis.google.com/chart?cht=lxy:nda&chd=t:-1|-1&chs=157x157&chfd=0,t,0,6.283,0.001,(2-2*sin(t)%2Bsin(t)*sqrt(abs(cos(t)))%2F(sin(t)%2B1.4))*cos(t)|1,t,0,6.283,0.001,(2-2*sin(t)%2Bsin(t)*sqrt(abs(cos(t)))%2F(sin(t)%2B1.4))*sin(t)&chds=-3,3,-4.5,1.5&chm=D,FF0000,0,0,1|B,FF0000,0,0,0

And you can play with Live Chart Playground^{1}:

cht=lxy:nda chd=t:-1|-1 chs=157x157 chfd=0,t,0,6.283,0.001,(2-2*sin(t)%2Bsin(t)*sqrt(abs(cos(t)))%2F(sin(t)%2B1.4))*cos(t)|1,t,0,6.283,0.001,(2-2*sin(t)%2Bsin(t)*sqrt(abs(cos(t)))%2F(sin(t)%2B1.4))*sin(t) chds=-3,3,-4.5,1.5 chm=D,FF0000,0,0,1|B,FF0000,0,0,0

Have hearty!

[1] | http://code.google.com/apis/chart/docs/chart_playground.html is gone. |

## 0 comments:

## Post a Comment