#15540 closed defect (duplicate)
Tooltip position for "Bars" chart is incorrect
Reported by: | ngjaying2 | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Charting | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Steps to reproduce:
- Download the attached test case and put in dojox/charting/tests
- Run test_chart2d2.html
- Hover on the bars, you can find the tooltip is shown at the bottom of the page.
In dojox/charting/action2d/Tooltip.js, process function, the aroundRect is gotten by:
case "bar": aroundRect = lang.clone(o.shape.getShape()); break;
In which aroudRect.w is NaN. But aroundRect.w is used later to calculate the position. I think this may be the cause of the problem
Attachments (2)
Change History (6)
Changed 9 years ago by
Attachment: | test_chart2d2.html added |
---|
comment:1 Changed 9 years ago by
Component: | DojoX Drawing → Charting |
---|---|
Description: | modified (diff) |
Owner: | changed from Mike Wilcox to Eugene Lazutkin |
comment:2 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #14650.
This is supposed to be already fixed in 1.7.3rc please check and if you still reproduce re-open with more details.
comment:3 Changed 9 years ago by
I tried it in Dojo 1.7.3, and the problem still exist(the tooltip is shown at the bottom of the page).
comment:4 Changed 9 years ago by
ztmnb163, maybe you are referring to another problem. If you are using the attached sample some CSS is missing in it. That might be your problem. I've attached a fixed test case. I suppose this will solve your problem.
Testcase