rrag / react-stockcharts

Highly customizable stock charts with ReactJS and d3
http://rrag.github.io/react-stockcharts
MIT License
3.84k stars 956 forks source link

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

Open khaphannm opened 3 years ago

khaphannm commented 3 years ago

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.

DeeeeLAN commented 3 years ago

Set your xExtents like this:

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