react-stockcharts
react-stockcharts copied to clipboard
Can't get scaleLinear to work
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:
My chart data is an array of objects like this: