'D3.js + React add multiple line charts with single zoom + context chart

I want to make like this charts in React and D3, I'm assuming I can make a line chart as a single component that receives one series as a prop but It's not working. how can I do it with React + D3.js?

multiple line charts control



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source