Plotly chart size not adaptable to the div container

Hello folks,
I am trying to adjust my plotly chart size to the div container but It is not working:
below is what i set:

            style={{
                width: "100%",
                height: "100%",
              }} config={{   responsive: true,
              }}

Does anyone has another hint?
Your help will be appreciated. Thanks