rrag / react-stockcharts

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

Can't get scaleLinear to work #752

Open flolege opened 4 years ago

flolege commented 4 years ago

My chart data sometimes consists of more datapoints than the charts' width.

So I tried to use scaleLinear to compress the data into my fixed chart width.

But it does not work: The chart gets drawn but i can only see a part of the chart, and I have to scroll to the left to see the rest of the chart.

What I am doing wrong? Here is the respective code:

image

My chart data is an array of objects like this:

image