Hi there,
You can use a microflow to pass your dynamic JSON structure.
First, I put the chart widget inside a data view that calls a microflow
The microflow creates a JSON structure using a string attribute in a temporary object:
Finally, the string is used as the source attribute for the layout of the chart:
Hope this helps :)
Liam