HMPlot

Explicit shared selection

Name one reusable selection, expose it as a virtual column, and share it across views.

Name one reusable selection, expose it as a virtual column, and share it across views.

Static preview; loading the interactive plot

<script>const focus = selection();</script>
<Data value={observations} key="id">
  <Interaction columns={{ "@focus": focus }}>
    <Plot><Points x="x" y="y" select={focus} respond={focus} /></Plot>
    <Plot><Filter where="@focus" inactive="all">
      <Points x="x" y="y" />
    </Filter></Plot>
  </Interaction>
</Data>