Relative Content

Tag Archive for reactjsrecharts

Recharts disable animation when refreshing the data

I am currently using an area chart from Recharts which i like very much. It animates when I load the page and looks very nice.
However, bec my data is live, I refetch updated data from the database every 30 seconds but I don’t want the chart to animate again every 30 seconds. I only want it to animate on page load. How can I accomplish this?

Can recharts draw lines of data at different frequencies?

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)…