ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Issue with tooltip
Posted by Parvesh Jain on Sep-01-2011 16:00
We are using your chart software with JSF version implemented by Richfaces on website
www.askkuber.com.  Right now we are in the process of migrating to PrimeFaces, which is
JSF version 2.

With this upgrade we are not able to see tooltip. Technically, we did not change the java
code which generates the image but there are changes in JSP/XHTML page.

We need your help in this regard. Please let us know what information you might need to
understand the issue.

Thanks and Regards
Parvesh

  Re: Issue with tooltip
Posted by Peter Kwan on Sep-01-2011 23:45
Hi Parvesh,

If you use the same Java code and the same data, the outputs of ChartDirector (including the image and the tooltips) will be exactly the same.

You would need to write HTML code to put the chart image and the image map into your web page. JSF components sometimes also generates HTML code. I suspect the HTML part is where the issue is. For the image map to work, the HTML must be valid and conform to the HTML standard.

Would you mind to check if the HTML is valid? When you view the web page, in many browsers, you may simply right click on the web page, and select "View Source" to view the HTML. You may then verify if the HTML is correct. For example, does the <IMG> tag that displays the chart have a valid usemap attribute? Is the image map well formed (with area tags enclosed in map tags)? Is the <map> tag of the correct name (which should be the same name referenced in the usemap attribute)? Are there any duplicated names? ....

If your web page is very complicated, I suggest you test with a simple web page (eg. modified using the "Simple Bar Chart" sample code) so you can read the HTML easily. If you cannot identify any issue in the generated HTML, you may attach the HTML and the chart image (or email to me at pkwan@advsofteng.net) so I may try to determine the cause of the problem.

Regards
Peter Kwan

  Re: Issue with tooltip
Posted by Parvesh Jain on Sep-02-2011 18:34
Attachments:
My images are shown exactly same in both versions of JSF (please refer to Production -first
one and UAT-second one images attched).

Currently production version displays the tooltip on mouse over. e.g. when mouse over to a
candle, tool tip pops up with values.

But same is not happening with PrimeFaces version. Nothing happens when i mouse over to
a candle or event on the chart.

To me it seems image map is correct as image is rendered by the browser but some
javascript issues, because tooltip might be getting displayed because of browser javascript.
Production_chart.jpg
UAT_chart.jpg

  Re: Issue with tooltip
Posted by Peter Kwan on Sep-03-2011 01:53
Hi Parvesh,

The tooltip (the image map) and the  image are two completely separated things. They are in different places in your web page, and are delivered in separate HTTP connections. You may refer to the HTML/HTTP documentation for details. The fact that the image is normal does not say anything about the image map (the tooltips).

In your case, the issue is in the image map part. To diagnose the problem, please check the HTML of your web page to see if the image map are inserted correctly into your web page. According to HTML standard, the image map does not need Javascript to work, and ChartDirector will not automatically generate Javascript code.

If your web page has Javascript, it is probably because your code uses Javascript (or the JSF component you are using adds Javascript). In this case, you would need to check if your Javascript interferes with the image map.

As mentioned in my previous message, if your web page is very complicated, I suggest you test with a simple web page (eg. modified using the "Simple Bar Chart" sample code). This allows you to read the HTML easily. If you cannot identify any issue in the generated HTML, you may attach the HTML and the chart image (or email to me at pkwan@advsofteng.net) so I may try to determine the cause of the problem.

Regards
Peter Kwan

  Re: Issue with tooltip
Posted by Parvesh Jain on Sep-03-2011 11:09
Thanks for very clear and precise explanation. It helped me a lot and issue has been
resolved. It was Ajax refresh issue of page content, which was only refreshing image and
not image map.