OFChart Plugin

Wrong Stacked Bar Chart Tooltip

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Win Xp

Description

After checking out from http://svn.codehaus.org/grails-plugins/grails-ofchart/tags/RELEASE_0_6 and trying the samples I found this annoying bug:

The tooltip in the Stacked Bar chart is misplaced.

e.g. in a:
You see the tooltip for the first stack until you are in the middle of the second one.

This is because of the default setting for Tooltips (PROXIMITY)

If you set the Tooltip to HOVER the problem is solved.

Maybe this should be outlined in the sample!

Bar.java
import jofc2.model.elements.Tooltip

...
 def STACKED_BAR = {
    def c = new Chart(new Date().toString()).setXAxis(new XAxis().setLabels("a", "b", "c", "d"));
    c.setTooltip(new Tooltip().setHover());

solves the problem!

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
5m
Original Estimate - 5 minutes
Remaining:
5m
Remaining Estimate - 5 minutes
Logged:
Not Specified
Time Spent - Not Specified