uber/react-vis

Unable to show separate tooltips for area series and custom svg series

anilkasam2 opened this issue · 0 comments

I am rendering area series chart and customsvgseries. But I unable to show tooltips on hover over these two charts, at a time It is showing only one chart details.
I have used onValuemouseOver for customsvgseries and onNearestXY for area series. But I can see only area series details on tool tip. Onvaluemouseover function is not calling it seems.

If I use onseriesmouseover for area I unable to get datapoint.
Please find below code and help me to show tooltip for area and customsvg series on hover respectively.
<CustomSVGSeries
x: x,
y:y,
isLimit: true
onValuemouseOver = {e=> handletooltip(e)}
/>

<AreaSeries
x: x,
y:y,
isLimit: false
onNearestXY={e=> handletooltip(e)}
/>

{showhint.datapoint.isLimit?(
CustomSVG series details
):(
Area series
)}