4 messages in com.googlegroups.google-chart-apiRe: Image Maps for Charts| Subject: | Re: Image Maps for Charts![]() |
|---|---|
| From: | mickaxl (mick...@netscape.net) |
| Date: | 06/26/2008 12:30:55 PM |
| List: | com.googlegroups.google-chart-api |
Off the top of my head I cannot see a way with pie charts short of knowing that a line at 12 o clock is always the starting point for drawing the pie and they segments are always built clockwise according to the order you supply them. The first part is not true however and I'll have to test the second part. What would be good is something similar to the bar Chart Zero Line parameter of chp but for pie charts.
Wonder what would happen if you specified chp in your example. Sometimes parameters "work" even for chart types they are not supposed to.
Ah well just tried that idea and it did nothing for me.
On Jun 26, 3:13 am, rck <rene...@gmail.com> wrote:
Wow, that's amazing -- thanks!
But... How am I supposed to figure out the pies Google Chart is creating for me?
Actual
Example:http://chart.apis.google.com/chart?chs=320x200&chd=t:41,36,9,133,44&c...jobs+(36)|kultur+(9)|news+(133)|sport+(44)&chco=C3D9FF,E5ECF9&cht=p
I of course know all the data I'm sending to google charts and can automate all kind of things with php. But how can I figure out the area occupied by the distinct pies?
Thanks again,
René
On Jun 26, 2:51 am, mickaxl <mick...@netscape.net> wrote:
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
outhttp://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&cht=bvg&chxt=x,y&chco=00FF00,0000FF&chf=bg,s,EFEFEF&chtt=Sample +Chart&chts=FF0000,20&chdl=FitzSoft|Your+Needs&chxl=0:| Natural|Adabas|DB2|Cobol|SQL|1:|0|5|10|15|20&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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Chart API" group.
To post to this group, send email to goog...@googlegroups.com
To unsubscribe from this group, send email to
goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---




