使用VS 2010图像映射的Google Charts POLY问题

时间:2010-06-02 19:23:11

标签: visual-studio-2010 google-visualization

您好我正在使用http://code.google.com/apis/chart/docs/gallery/googleometer_chart.html

我有:

<img src="http://chart.apis.google.com/chart?cht=bvg&chs=250x150&chd=s:egbdf&chxt=x,y&chxs=0,ff0000,12,0,lt|1,0000ff,10,1,lt&chm=o,000000,0,-1,10|V,000000,0,-1,1:15,,:4:10|H,000000,0,-1,3:9,,:8:17&chxl=0:|E|G|B|D|F" usemap ="#chart" />
           <map name='chart'>
                <area name='bar0_0' shape='POLY' coords= '124,440,124,499,143,440,143,498' href='#'>
                <area name='bar0_1' shape='RECT' coords='55,129,78,63' href='#'>
            </map>

当我使用'rect'作为形状时,我可以附加一个点击事件等但是当我使用'poly'时它不起作用。

我使用jQuery鼠标位置插入来检查坐标,它们似乎没问题。

有人可以帮忙吗?

由于

1 个答案:

答案 0 :(得分:0)

将图像放入类似绘画的内容并获取它的坐标,而不是网页上的坐标Obviosuly,因此它仍然可以在页面的任何位置使用。