react-stockcharts icon indicating copy to clipboard operation
react-stockcharts copied to clipboard

How can show all data when init the chart first time?

Open khaphannm opened this issue 4 years ago • 1 comments
trafficstars

As the title, I want to show all plot of data when init the chart. Anyone used to implement it? Please help me

Any suggestion would be appreciated.

khaphannm avatar Jan 14 '21 10:01 khaphannm

Set your xExtents like this:

const start = xAccessor(last(linearData));
const xExtents = [start, 0]

DeeeeLAN avatar Feb 13 '21 05:02 DeeeeLAN