Plotly Dynamic SVG


we have a plotly svg custom shape and regions within the shape. we want to make those regions dynamically resize depending on the data that region represents. Data is updated in seconds. the trick is making this shape evolve within the confines of a React component displayed on a mobile & desktop device. Also, each region has to be clickable. right now, we have a button inside each static region. the entire region doesn’t have to be clickable, but that button and it’s integrity/functionality within the shape-shifting region should remain.