This builds the detail sections dynamically, so we can add or omit sections depending on the location detail data. It also tries to use more width on the full-page location detail.
There is an odd issue with Plotly where the initial plot doesn't use the full width, but once you change the plot, it resizes to use the available width. I tried a few things to kick it into gear (updating the revision, etc.), but I think it has to do with the fact that the plot is created while the section is collapsed, so Plotly's initial sizing of the plot is wrong. Maybe we need a flag to pass in to tell the component it is collapsed or expanded, so that it only creates the plot once it is expanded. We can look into that later.
This builds the detail sections dynamically, so we can add or omit sections depending on the location detail data. It also tries to use more width on the full-page location detail.
There is an odd issue with Plotly where the initial plot doesn't use the full width, but once you change the plot, it resizes to use the available width. I tried a few things to kick it into gear (updating the revision, etc.), but I think it has to do with the fact that the plot is created while the section is collapsed, so Plotly's initial sizing of the plot is wrong. Maybe we need a flag to pass in to tell the component it is collapsed or expanded, so that it only creates the plot once it is expanded. We can look into that later.