score:0

If your issue is tooltip not showing as per dynamic data then replace the below code, the tooltip will start showing -

    tip.offset([-10, 0]).html(d => {
      return (
        "<strong>Frequency:</strong> <span style='color:red'>" +
         d.train + "</span>"
       );
     });

Scrrenshot with tooltip(e.g - Frequency: 1

Hope it will help you :)


Related Query

More Query from same tag