fix: missing segments of price chart (#4541)
fixed missing segments of line
This commit is contained in:
parent
9381a74f1d
commit
fac3845756
@ -5,7 +5,7 @@ import { EventType } from '@visx/event/lib/types'
|
|||||||
import { GlyphCircle } from '@visx/glyph'
|
import { GlyphCircle } from '@visx/glyph'
|
||||||
import { Line } from '@visx/shape'
|
import { Line } from '@visx/shape'
|
||||||
import { filterTimeAtom } from 'components/Tokens/state'
|
import { filterTimeAtom } from 'components/Tokens/state'
|
||||||
import { bisect, curveCardinalOpen, NumberValue, scaleLinear } from 'd3'
|
import { bisect, curveCardinal, NumberValue, scaleLinear } from 'd3'
|
||||||
import { useTokenPriceQuery } from 'graphql/data/TokenPriceQuery'
|
import { useTokenPriceQuery } from 'graphql/data/TokenPriceQuery'
|
||||||
import { TimePeriod } from 'graphql/data/TopTokenQuery'
|
import { TimePeriod } from 'graphql/data/TopTokenQuery'
|
||||||
import { useActiveLocale } from 'hooks/useActiveLocale'
|
import { useActiveLocale } from 'hooks/useActiveLocale'
|
||||||
@ -249,7 +249,7 @@ export function PriceChart({ width, height, token }: PriceChartProps) {
|
|||||||
getX={(p: PricePoint) => timeScale(p.timestamp)}
|
getX={(p: PricePoint) => timeScale(p.timestamp)}
|
||||||
getY={(p: PricePoint) => rdScale(p.value)}
|
getY={(p: PricePoint) => rdScale(p.value)}
|
||||||
marginTop={margin.top}
|
marginTop={margin.top}
|
||||||
curve={curveCardinalOpen.tension(curveTension)}
|
curve={curveCardinal.tension(curveTension)}
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
width={graphWidth}
|
width={graphWidth}
|
||||||
height={graphHeight}
|
height={graphHeight}
|
||||||
|
Loading…
Reference in New Issue
Block a user