I'm using a Scatter chart from Rechart
The data is displaying fine but I want to tooltip to display an additional pop (the name of the item), just like it does on a Barchart. I've found that I could completely customize the tooltip but I wonder if there is an easier way ? like a prop that i don't know how to use. the doc isn't very explicit on how to use some of the props
here's the code. You can see that I've tried datakey and label, but without success
<ScatterChart
width={400}
height={400}
margin={{
top: 20, right: 20, bottom: 20, left: 20,
}}
>
<CartesianGrid />
<XAxis type="number" dataKey="sizeMB" name="Size" unit=" MB" />
<YAxis type="number" dataKey="directReferenceCount" name="# of References" unit=" References" />
<Tooltip cursor={{ strokeDasharray: '3 3' }} dataKey={'fullName'} label={'fullName'} />
<Scatter name="Line Item" data={this.props.data} fill="#8884d8">
</Scatter>
</ScatterChart>