#1050·nvd3

On linechart with only 2 series enabled, the tooltip doesn't get highlighted.

Author: nadbmCreated May 20, 2015Updated Feb 21, 2022
LabelsBug

This looks like it was done on purpose so that the highlight only works with above two datas. Seems like it may be useful for also 2 series. On linechart.js :

javascript
                //Highlight the tooltip entry based on which point the mouse is closest to.
                if (allData.length > 2) {