uber / react-vis

Data Visualization Components

Home Page:https://uber.github.io/react-vis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hint value out of the graph area when I zoom in issue

filiplucian opened this issue · comments

Hello,
Please help me in hidding hint values that are out of the graph area when I zoom in.
This thing happens when I zoom in and hover the stroke.

<MarkSeries onNearestXY={value => setPeakPoint(value)} onValueClick={(datapoint, event) => setPeakPoint(datapoint)} data={localMaximas} opacity={showPeakValues ? 1 : 0} /> {peakPoint && showPeakValues && ( <Hint value={peakPoint}> <div>{peakPoint.x}</div> </Hint> )} <Highlight onBrushEnd={area => setZoomLocation(area)} onDrag={area => { setZoomLocation(area) }} />

2021-02-17_15h15_23
2021-02-17_15h14_38