uber/react-vis

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

filiplucian opened this issue · 0 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