I am exploring the options with the new Analysis Widget and its functionality with a custom geoprocessing service. The GP service creates output layers that can get added to the map in the application but has anyone worked out if there's a way to have the output layers interact with a Chart widget? I know the Analysis widget is still lacking all the capabilities of the WAB version (custom symbology settings, etc)...Since the layers don't exist in the linked web map before running the GP service, I don't have the option to select the data source and therefore can't link a chart.
Looking for out of the box ideas before persuing custom dev, thanks!
Thanks for your question. It is currently not supported to create chart at runtime using Analysis result.
We will take a look to see if we can support it in future. But so far, to get some basic statistic, you can check the data action from the result from the History details. There is an action called statistic and you can choose a field of the result to see some simple summary.
I am running into the same issue right now. I haven't tested the following so I'm not sure if it will actually work, but when I run the GP tool that I have built an output feature layer is created. My thought is if I can find a way to clear this output feature layer and add information back to it each time the GP tool is run, then I now have a data source layer that I can connect charts, tables, etc. to. Not sure if that helps you at all given I haven't tested the idea but thought I would put it out there in case you give it a try and can help me solve how to do it.
@EmilyBrewer Thanks for your idea. I think that might work. The workaround you can try now is: create an empty service, and you can write a GP tool to overwrite an existing service, and meanwhile use that service in Chart widget.