v2.4.0 - Mobile chart tooltip auto-dismisses after 5 seconds
WP VisitChart v2.4.0
Mobile page: chart tooltip now auto-dismisses after 5 seconds.
Problem
After touching the traffic graph on the mobile page, the tooltip would stay visible indefinitely — even while scrolling away from the chart, making it awkward to read the rest of the page.
Fix
touchend and touchstart listeners on the mobile chart canvas:
touchendstarts a 5-second timer. When it expires, the active tooltip is cleared viachart.tooltip.setActiveElements([])andchart.update('none')touchstartcancels the timer so the tooltip stays visible while the user is actively touching the chart
Tested on iOS and Android. The admin dashboard graph is unaffected.
Upgrade
Download wp-visitchart.zip below and replace the existing plugin files. No database changes required.