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

  • 1
  • Problem
  • Updated 2 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.



Help?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
  • frustrated!

Posted 2 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Official Response
You have to use the $Chart merge syntax ($Chart.point.name, 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?