You can create CustomTooltip Component that can display the data as per your requirement as done below
const CustomTooltip = ({ active, payload, label }) => {
console.log("payload",payload); //you check payload
if (active) {
return (
<div>
<Card>
<p>{date} </p>
<p>Price : ${}</p>
<p>Sales Rank :${} </p>
<Card>
</div>
);
}
return null;
};
payload array image
payload variable contain all axis values and data as per your requirement for example
where payload[0] contain x-axis and payload1 contain y-axis and payload[2] contain z-axis as per your requirement you can extract value from array
<div>
<p>{date} </p>
<p>Price : ${payload[0].data}</p>
<p>Sales Rank :${payload[1].data} </p>
</div>
and date can we extract from the payload[0].payload which contains entire object of the data that you pass in chart and you can pass your CustomTooltip in Tooltip as below shown
<Tooltip content={<CustomTooltip />} />
Whenever you cursor over points on graph can able to see the tooltips as you wish