• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cewolf tooltips are not showing

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Cewolf chart being shown with the tooltips. If i check the source of the HTML in the browser, it shows ALT with my tooltip. But when i get my mouse over that area, nothing is shown.

I also noticed that the first line with the AREA tag added in the beginning covers the whole area of the chart. When i remove those lines (by saving the html onto local drive), the tooltips are shown. Could anyone help regarding this.

Below is the HTML code generated

<p>

<MAP name="line">

<AREA shape="rect" COORDS="0,0,775,325" >
<AREA shape="rect" COORDS="356,1,418,25" >
<AREA shape="rect" COORDS="362,300,413,324" >
<AREA shape="rect" COORDS="365,303,410,321" >
<AREA shape="rect" COORDS="67,34,762,250" >
<AREA shape="rect" COORDS="67,255,762,296" >
<AREA shape="rect" COORDS="8,34,63,250" >
<AREA shape="poly" COORDS="78,106,84,106,84,112,78,112,78,106,78,106" ALT="" HREF="hello">
<AREA shape="poly" COORDS="115,97,121,97,121,103,115,103,115,97,115,97" ALT="" HREF="hello">
<AREA shape="poly" COORDS="152,96,158,96,158,102,152,102,152,96,152,96" ALT="" HREF="hello">
<AREA shape="poly" COORDS="189,70,195,70,195,76,189,76,189,70,189,70" ALT="Usage at 03:00(3.22 units), > average usage (2.96 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="226,118,232,118,232,124,226,124,226,118,226,118" ALT="" HREF="hello">
<AREA shape="poly" COORDS="263,44,269,44,269,50,263,50,263,44,263,44" ALT="Usage at 05:00(3.43 units), > average usage (2.97 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="301,82,307,82,307,88,301,88,301,82,301,82" ALT="Usage at 06:00(3.12 units), > average usage (3.08 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="338,143,344,143,344,149,338,149,338,143,338,143" ALT="" HREF="hello">
<AREA shape="poly" COORDS="375,88,381,88,381,94,375,94,375,88,375,88" ALT="" HREF="hello">
<AREA shape="poly" COORDS="412,102,418,102,418,108,412,108,412,102,412,102" ALT="" HREF="hello">
<AREA shape="poly" COORDS="449,90,455,90,455,96,449,96,449,90,449,90" ALT="Usage at 10:00(3.05 units), > average usage (3.0 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="486,79,492,79,492,85,486,85,486,79,486,79" ALT="Usage at 11:00(3.14 units), > average usage (2.98 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="560,41,566,41,566,47,560,47,560,41,560,41" ALT="Usage at 13:00(3.46 units), > average usage (3.08 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="598,68,604,68,604,74,598,74,598,68,598,68" ALT="Usage at 14:00(3.23 units), > average usage (3.05 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="635,111,641,111,641,117,635,117,635,111,635,111" ALT="Usage at 15:00(2.88 units), > average usage (2.83 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="672,84,678,84,678,90,672,90,672,84,672,84" ALT="Usage at 16:00(3.1 units), > average usage (2.93 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="709,113,715,113,715,119,709,119,709,113,709,113" ALT="Usage at 17:00(2.86 units), > average usage (2.8 units) for last 4 weeks at the same time" HREF="hello">
<AREA shape="poly" COORDS="746,238,752,238,752,244,746,244,746,238,746,238" ALT="" HREF="hello"></MAP>
<IMG BORDER="0" HEIGHT="325" WIDTH="775" ALIGN="center" ALT="" USEMAP="#line" src="/project/cewolf;jsessionid=D968E74A9EFE27AD7F7ED2509AD44B65?img=-2022484373&width=775&height=325&iehack=.png">
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The fix is to use the cewolf version that I distribute (see my signature). It has this bug fixed as well as several others, and also has a number of new features over the version distributed from SourceForge.

(Don't worry about using an "unofficial" version - I'm a committer for cewolf on SourceForge, and the version that's on my web site now will become the official version in the not too distant future.)
 
Vinay Iceman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf.. I have got that problem solved. There is one more issue from the previous version to this as well. When i use my IE browser(IE 8) it generates tooltips with only ALT. But when i use firefox it generates tooltip using the overlib javascript.

How can i make it show in Javascript even in IE?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the actual problem? Either way, the tooltip is shown, no?

It's preferable not to use JavaScript unless necessary, since it increases complexity and the likelihood that the result won't work. Even though IE's behavior of showing the contents of the ALT attribute during mouseover is a bug on IE's part :-)
 
Vinay Iceman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My problem is solved. The javascript way of showing the tooltip was much nicer. Was looking to enhance the tooltips on IE.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The javascript way of showing the tooltip was much nicer. Was looking to enhance the tooltips on IE.


I see. Can you please go to http://www.ulfdittmer.com/cewolfexample/tutorial.jsp using IE, and tell me if you see the JavaScript-generated tooltips there? I've uploaded a cewolf version that should create them even for IE, but I don't have IE available to test it with...
 
Vinay Iceman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is one more thing. Is there any way to make the LineAndShapeRenderer to generate the circles at the points only on certain business conditions of mine?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vinay Iceman wrote:Is there any way to make the LineAndShapeRenderer to generate the circles at the points only on certain business conditions of mine?


If you write a subclass of LineAndShapeRenderer then you can set that as renderer in a ChartPostProcessor.

I've uploaded a cewolf version that should create them even for IE, but I don't have IE available to test it with...


No, that didn't work. IE will have to continue to rely on ALT tags.
 
reply
    Bookmark Topic Watch Topic
  • New Topic