Skip to main content
Package: recharts.
One timeline, two views

Move across either chart. Both tooltips follow the same date.

Requests
Response time
View data
Sample data shared by both charts
DayRequestsLatency (ms)
Oct 116,600142
Oct 221,900154
Oct 318,800148
Oct 425,800182
Oct 528,200176
Oct 619,700136
Oct 722,900151
Oct 826,600164
Oct 930,700189
Oct 1029,100172
Oct 1132,700183
Oct 1235,200196
Oct 1327,900162
Oct 1430,400168

Try it

Move across either chart. Both tooltips follow the same date, while each chart keeps its own scale and unit. Narrow the range with the brush under the response-time chart. Both plots zoom to that range. Use the arrow keys when a brush handle is focused.

Code

synchronized-charts.jsx

Key props

These datasets have matching dates and indexes. If your datasets differ, check syncMethod before sharing a group.

Next

Place both units on one plot with a composed chart. See the AreaChart synchronization props and Brush reference.