How to trace what menu item has been clicked?

Hi all,
I am trying to reuse a React.js chart component that linked to multiple menu items. Is there any way to pass a variable or find out what menu item triggered the chart?
For example, on the menu, I have chart 1, 2 and 3. I want to display different data by routing to the same Charts.js based on what menu item has been clicked.

Thanks in advance!