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

Can't get scaleLinear to work

Open flolege opened this issue 4 years ago • 0 comments

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

flolege avatar Apr 25 '20 12:04 flolege