OH3 UI - Popup with temperature history: is there a better way to do this?

This is OH3 with the main UI.

I have a map page with markers representing temperature sensors. My goal is to be able to click on one and get a popup showing the temperature over the last 24 hours, and I have a working solution as you can see here:

I’ve done this by creating a chart page using this code:

  label: Temperature
  period: D
    - component: oh-chart-grid
      config: {}
    - component: oh-time-axis
        gridIndex: 0
    - component: oh-value-axis
        gridIndex: 0
        scale: true
    - component: oh-time-series
        name: Temperature
        gridIndex: 0
        xAxisIndex: 0
        yAxisIndex: 0
        type: line
        item: DeckTemperatureSensor_Temperature

And then in the map page, configuring the marker to open it as a popup, like so:

  - component: oh-plan-marker
      name: Deck Temperature
      coords: 1641.4678410014806,712.534271817363
      icon: oh:temperaturef
      iconUseState: true
      tooltipPermanent: true
      item: DeckTemperatureSensor_Temperature
      action: popup
      actionModal: page:page_150f35cb60
      default: []

The catch here is that this requires me to create a chart page for every marker, which is kind of a pain. So I have two questions:

  1. Am I going about this the right way? If not, then what’s a better approach?
  2. Assuming this is the right approach, can I/how do I configure the things such that I can use the same chart page for each marker (passing the marker item name to the underlying page in the popup)? It seems like this should be possible, but I’ve not been able to figure out a syntax for it. Possibly because I’ve missed an example somewhere in the documentation or forums.

I use the „anylyze item“ action for the marker.
There you can set it to „day“.

Is this what you are looking for?

No, not the analyzer. I don’t use the analyzer because I don’t want to replace the loaded page; I want it as a popup.

I need to be able to send a target item or item name to the page loaded by the popup.