Chart: Activate and Set Value does not get context row of Agg Model on click.

  • 1
  • Problem
  • Updated 4 years ago
  • In Progress
Donut chart on an agg model, with a series click action framework like so:

However, no matter what I click in runtime, the popup is getting passed the patientZip value for the first row of the Agg model, not the context (clicked) row.

Photo of Matt Sones

Matt Sones, Champion

  • 33,040 Points 20k badge 2x thumb
  • frustrated!

Posted 4 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,960 Points 5k badge 2x thumb
Official Response
You have to use the $Chart merge syntax ($, in this case, I think). You're using an aggregate model, so there is only one row per donut slice, but if you were using a basic model, there would be more than one. How would know which row to send as the row in context?