lukecwik
Posts: 4
Joined: Thu Mar 04, 2010 12:10 am

Stacked Bar Charts Tooltip Issue

When mousing over a bar which extends beyond the maximum set for the axis, the tooltip does not appear anymore.

Below is a sample chart:

Code: Select all

{"chart":{"renderTo":"chart_1269900951761","defaultSeriesType":"bar","height":600,"events":{}},"title":{"text":"Daily View Of Activity By Time Of Day"},"xAxis":{"title":{"text":"Time Period","enabled":true},"categories":["Day","Night"]},"yAxis":[{"title":{"text":"","margin":29},"min":0,"tickmarkPlacement":"on","max":12,"categories":["9AM","10AM","11AM","12PM","1PM","2PM","3PM","4PM","5PM","6PM","7PM","8PM","9PM"],"opposite":true},{"title":{"text":"Time","margin":29},"min":0,"tickmarkPlacement":"on","max":12,"categories":["9PM","10PM","11PM","12AM","1AM","2AM","3AM","4AM","5AM","6AM","7AM","8AM","<center>9AM<br>+1 DAY</center>"]}],"series":[{"name":"Walking outside the home","data":{"name":"Walking outside the home","y":0,"color":"#4572A7"},"type":"column"},{"name":"At home out of bed","data":{"name":"At home out of bed","y":0,"color":"#AA4643"},"type":"column"},{"name":"In bed","data":{"name":"In bed","y":0,"color":"#89A54E"},"type":"column"},{"name":"Out of home activity","data":{"name":"Out of home activity","y":0,"color":"#80699B"},"type":"column"},{"name":"Other transportation","data":{"name":"Other transportation","y":0,"color":"#3D96AE"},"type":"column"},{"name":2,"data":[{"name":"<b>11.58</b> hours in Vehicle outside the home<br>Start: Mar 24, 2010 9:25:00 AM<br>End: Mar 24, 2010 9:00:00 PM","y":11.583333333333334,"color":"#3D96AE"},{"name":"NULL","y":0,"color":"#FFFFFF"}]},{"name":1,"data":[{"name":"<b>0.12</b> hours Walking outside the home<br>Start: Mar 24, 2010 9:18:00 AM<br>End: Mar 24, 2010 9:25:00 AM","y":0.11666666666666667,"color":"#4572A7"},{"name":"NULL","y":0,"color":"#FFFFFF"}]},{"name":0,"data":[{"name":"<b>0.30</b> hours out of bed in the Home<br>Start: Mar 24, 2010 9:00:00 AM<br>End: Mar 24, 2010 9:18:00 AM","y":0.3,"color":"#AA4643"},{"name":"<b>12.00</b> hours in Vehicle outside the home<br>Start: Mar 24, 2010 9:00:00 PM<br>End: Mar 25, 2010 9:00:00 AM","y":12,"color":"#3D96AE"}]},{"yAxis":1,"data":[0]}],"plotOptions":{"bar":{"borderWidth":0,"groupPadding":0.1,"pointPadding":0.1,"stacking":true,"showInLegend":false,"events":{}},"column":{"events":{}}},"legend":{"style":{"bottom":"0px"}},"credits":{"enabled":false}}
Here are two screenshots, the first showing when the popup works fine, and the other when the popup does not work. The same problem exists using the default tooltip formatter.
chart2.jpg
chart2.jpg (65.92 KiB) Viewed 2832 times
chart1.jpg
chart1.jpg (56.16 KiB) Viewed 2836 times
By disabling the maximum on the axis, the problem goes away but the maximum is required to enforce the category labels.

Return to “Highcharts Usage”