Commit fac38457 authored by cartcrom's avatar cartcrom Committed by GitHub

fix: missing segments of price chart (#4541)

fixed missing segments of line
parent 9381a74f
...@@ -5,7 +5,7 @@ import { EventType } from '@visx/event/lib/types' ...@@ -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) { ...@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment