I’m trying to add a tooltip to a line chart made on D3 for which I need to call data.
The data is inside a group with arrays, and I’m unable to call the data inside the group. In this case ‘country’ and ‘cases’. But because they are in an array inside an array I keep getting ‘undefined’ in the tooltip.
I know this seems basic but I’m stuck. Any ideas?