Can recharts draw lines of data at different frequencies? #4562
Replies: 4 comments 4 replies
-
What data type is your time data? If you recreate an example of what you currently have in a codesandbox I can try to help. |
Beta Was this translation helpful? Give feedback.
-
Hello, I prepared a repository with the various test cases: We basically map time values to epoch numbers, and set the type of the axis to number. I hope what I linked is simple enough to understand the situation better, feel free to ask for more info or less details if needed. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. We however need to see a line with holes, as those are time-series data at fixed frequency. Holes help detect when data is missing. And a line is expected to connect the data when it is not missing :/ Here is something I did myself using d3 natively with angularJS in the previous version of our application: |
Beta Was this translation helpful? Give feedback.
-
I am currently pulling my hair around a problem that sounds simple at first: I have data at different frequencies (e.g. 1 point every 15minutes for one series, and 1 every 1hour for another) that I want to plot on the same chart, but can't seem to get the result I expect. I either get no line display for the daily data (as missing points are treated as missing using a single data set), or cannot get the tooltip to display data properly (if I set the data manually on the line), as the arrays do not have the same lengths. Additionally, I need to synchronize the tooltip across muliple trends (at either same or different frequencies)...
I already fiddled with:
Any way to reconcile all this, or am I pushing the library to its bounds?
Beta Was this translation helpful? Give feedback.
All reactions