I have a conditional drilldown from a simple XML pie chart that opens a chart in a new panel based on which pie slice I clicked. I've been asked to also make it possible to drill down on all values--basically setting the token to a star. Is there a way to do that from the chart itself? Or do I need to do something hacky like add an input dropdown to my panel that will toggle between a star drilldown and a per-slice drilldown?
You can definitely set token within selection event of the Pie chart. However, since the value is always going to be , I am not sure as to why you can not have a panel with hard-coded [fieldname]= and only set the $earliest$ and $latest$ tokens from the pie chart, which I believe you are already doing right now.
<selection> <set token="allValues">*</set> </selection>
I think above should still solve your problem. The token allValues will be set when you click on Pie Chart.
In your search you can use [YourFieldName]=$allValues$
Can you give what field is the pie chart built on and what is the search you want to run when the Pie chart is clicked?