viewsource icon indicating copy to clipboard operation
viewsource copied to clipboard

Update examples to use latest @vx/shape

Open hshoff opened this issue 5 years ago • 1 comments

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

hshoff avatar Jun 25 '19 15:06 hshoff

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}
/>

pedroapfilho avatar Aug 28 '19 10:08 pedroapfilho