viewsource
viewsource copied to clipboard
Update examples to use latest @vx/shape
Been looking at your viewsource demos: https://viewsource.now.sh/bitcoin the graph doesn't show when using @vx/shape: "^0.0.189" all seems fine when using @vx/shape: "0.0.131".
From: https://github.com/hshoff/vx/issues/469
Just have to change from:
<LinePath
data={data}
yScale={yScale}
xScale={xScale}
y={y}
x={x}
stroke="#6086d6"
strokeOpacity="0.8"
strokeWidth={1}
/>;
to:
<LinePath
data={data}
x={d => xScale(x(d))}
y={d => yScale(y(d))}
stroke="#6086d6"
strokeOpacity="0.8"
strokeWidth={1}
/>