4 messages in com.googlegroups.google-chart-apiRe: Image Maps for Charts
FromSent OnAttachments
rck24 Jun 2008 18:25 
mickaxl25 Jun 2008 17:51 
rck26 Jun 2008 03:12 
mickaxl26 Jun 2008 12:30 
Subject:Re: Image Maps for Charts
From:mickaxl (mick@netscape.net)
Date:06/25/2008 05:51:18 PM
List:com.googlegroups.google-chart-api

This has been discussed a little here before and I proposed a temporary solution until the feature is available in G-charts. It does mean that you have to know a bit about your data and the display that will result when you code up the html but check out
http://www.fitzsoft.com/skillchart.htm where I use <map> and <area> tags to achieve what you were looking for.

<div id="barimg" class="skover"><img usemap="#skmap" map id="barchart" alt="Bar Graph depicting project needs versus the FitzSoft Consulting skill set." title="Bar Graph depicting project needs versus the FitzSoft Consulting skill set." longdesc="http://code.google.com/apis/ chart/" src="http://chart.apis.google.com/chart? chs=400x375&amp;cht=bvg&amp;chxt=x,y&amp;chco=00FF00,0000FF&amp;chf=bg,s,EFEFEF&amp;chtt=Sample +Chart&amp;chts=FF0000,20&amp;chdl=FitzSoft|Your+Needs&amp;chxl=0:| Natural|Adabas|DB2|Cobol|SQL|1:|0|5|10|15|20&amp;chd=s:22YYV,Mn5tz" /> <map name="skmap" id="skmap"> <area class="hand" shape="rect" coords="20,375,80,0" nohref="nohref" alt="See more details on this skill set" title="See more details on this skill set" onclick="moreinfo(1)" /> <area class="hand" shape="rect" coords="80,375,120,0" nohref="nohref" alt="See more details on this skill set" title="See more details on this skill set" onclick="moreinfo(2)" /> <area class="hand" shape="rect" coords="120,375,180,0" nohref="nohref" alt="See more details on this skill set" title="See more details on this skill set" onclick="moreinfo(3)" /> <area class="hand" shape="rect" coords="180,375,240,0" nohref="nohref" alt="See more details on this skill set" title="See more details on this skill set" onclick="moreinfo(4)" /> <area class="hand" shape="rect" coords="240,375,300,0" nohref="nohref" alt="See more details on this skill set" title="See more details on this skill set" onclick="moreinfo(5)" /> </map> </div>

On Jun 24, 6:25 pm, rck <rene@gmail.com> wrote:

Dear all,

an idea just occured to me... How about an extension to the API that delivers an image map? So we could for example click on a part of a pie and get to a more detailed and/or related page?

I'm using Google Chart with php, some kind of serialized associative array would be nice.

All the best,

René C. Kiesler