question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xExtents does not work in some cases

See original GitHub issue

Hey @rrag, we would love to have your opinion on a bug we are having.

I reproduced it on this branch https://github.com/rrag/react-stockcharts/tree/bugDomain, run npm run watch and open http://localhost:8080/documentation.html#/line_scatter

You will see that:

image

note that the first point is 9.11am. the xExtents however start at 9am.

const minDate = new Date(1480579255864); // Thu Dec 01 2016 09:00:55 GMT+0100
const maxDate = new Date(1480580777028); // Thu Dec 01 2016 09:26:17 GMT+0100
xExtents={[minDate, maxDate]}

The points before 9.11am are displayed as you can see if you drag the chart:

dec-09-2016 17-26-48

We found it that using plotFull props on ChartCanvas will work but is not performant when zooming.

Thanks for your help, it means a lot to us 😃

CC @dbrugne

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Dr-Niksoncommented, Dec 13, 2016

@rrag I’m using this PR too. On chart below pointsPerPxThreshold = 6: image …and about 7k points. It’s pretty extreme amount, but looks very nice. I believe we should use lower values with candles, but, anyway - @shprink big big thanks for this 👍

1reaction
Dr-Niksoncommented, Dec 14, 2016

@shprink It’s not a part of the chart… just html + css. For my purposes it is easier to customize for different chart types: image image

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Stockcharts crashes when width and height are small
When i just inspect the page or on the smaller device screen, the error occuring : "Showing 0 datapoints, review the 'xExtents' prop...
Read more >
rrag/react-stockcharts - Gitter
Padding is not working for me, because this area should be use for charts. ... I am using it, and when my new...
Read more >
[vtkusers] vtkImageReslice and vtkImageResample, different ...
However, I don't think that this is why you are seeing problems with ... two code lines > reslice->SetOutputExtent(0,XExtent-1,0,YExtent-1,0 ...
Read more >
Insufficient free space: X extents needed, but only Y available
The above command will ask the system to allocate all free space to the selected logical volume, without asking for a specific size....
Read more >
Tile script (Mapnik) with OpenLayers - Problem with projection ...
I use Mapnik python bindings in a geodjango application to render tiles in openlayers with datasource stored in postGIS in 900913 projection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found