Data visualization component dynamic data binding for data source
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2022 07:18 AM
For the data visualization component, I want to bind the data source dynamically. What is the JSON that it expects? I have the same question for Metric below.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2022 06:32 AM - edited 11-04-2022 06:33 AM
Hello,
Select 'Define Data Manually' under Data resource. (I can see the option in Tokyo version)
General JSON format is :
Create data resource and get the result in above format.
Let me know if it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 02:01 PM
Hello Nisarg,
I was able to get dynamic filtering to work following this article. Also see my attached screenshots
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1156652
Basically creating a Data Resource(glideRecord Query) and then creating a page script (Dynamic filter).
Once these are completed and associated to each other, you can go to the data visualization and add an event handler.
You'll see the page script that you created. Add it and save. The results wont translate on the builder page but testing it in workspace will show the filter.
Hope this helps!