Report Viewer - Tag History programatically

Hello! Is it possible for the user to change the aggregtion mode and calculations so the Tag History updates its results and shown them in the Report Viewer in Perspective? I’m trying to do something like the attached picture. Let me know if there is a way. Thanks in advance!

It would be possible, but you’d have to use scripting to run your tag history. Pass the mode in as a string parameter and use system.tag.queryTagHistory to fetch the data.