开发者

Google Charts API Graph With Custom Marker Icons

I build a l开发者_StackOverflow中文版ittle script that makes draws a graph with the google charts api. http://pastebin.com/followersgraph.php

Now, i want to add custom markers images. I have an image ready to act as a marker.

In the Google Charts API documentation i cannot find how to add custom icons.

http://pastebin.com/i/nyan.png is the icon that should show up at each marker.

Help is much appreciated!


EDIT:

d=<marker_data_string> //string location of custom image

EXAMPLE:

https://chart.googleapis.com/chart?chs=300x140&cht=lc&chco=FF9900,224499&
chd=t:75,74,66,30,10,5,3,1&chls=1|1&
chem=y;s=bubble_icon_text_small;d=ski,bb,Wheeee!,FFFFFF;dp=2;ds=0&chm=v,ccccFF,0,::.2,2

In that example, the "d=ski,bb,Wheeee!" i think that may be the custom marker image from what i can see on the Google Docs Help.. then all the other parameters are used to specify where on the chart to put the marker.

Go to : http://code.google.com/apis/chart/image/docs/chart_params.html#gcharts_dynamic_markers

and scroll down a bit towards the skiing man image..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜