fnando / sparkline

Generate SVG sparklines with JavaScript without any external dependency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tooltip information not visible

akshithrk opened this issue · comments

Hi, The sparklines work fine individually. But am facing few issues with respect to the tooltip for the sparklines.

#1. When I define the tooltip info in options & pass that(options) to create sparklines, the page loads fine, but the moment, I hover over the sparkline, the cursor & dot appear for a second & then the page crashes.

#2. When I comment out the tooltip section within "options", then the page loads fine & the cursor/dot appear & page doesn't crash, however, it removes the other SVG(.line) elements from the page & also the cursor is limited to the right side of the sparkline, as in it doesn't move along the sparklines. Attached scr. shot of this issue.

Screen Shot 2020-03-23 at 16 13 03

@akshithrk
The tooltip works fine for me using the code from the example codepen.
Need to show your code. Can you recreate it in a codepen?