How can we detect parent component’s state variable changing in react child component?

I want to execute some action in child component.
For example, when I click navigation bar button, navigation bar will be not visible and bar chart element width will be full size
But it requires to redraw chart and chart is placed in child component.
Please note your idea to solve this problem.