Displaying Related Data in Handlebars Cards Based on a Common ID #30850
Replies: 1 comment
-
To achieve your goal of displaying related data in Handlebars cards based on a common ID, you can follow these steps:
By following these steps, you should be able to create a visualization that displays data in cards based on a common ID. If you need to create a custom Handlebars helper for parsing JSON, you can refer to the existing helpers in the Superset codebase as a guide [1]. |
Beta Was this translation helpful? Give feedback.
-
I have an issue, and I'm looking for some guidance. My goal is to create a visualization using Handlebars because I want to display different cards. Initially, my data was related by a specific column. I have a column with an ID that repeats across different rows, and the data in each row belongs to the same category. In my visualization, I want to show the data for each unique ID on separate cards, but I’m unsure how to structure the Handlebars template since I haven’t found a way to iterate by ID.
My initial approach was to transform the data into JSON format, where each ID would have key-value pairs, but I'm struggling to use that JSON. Even though it appears as JSON format in Superset, it’s actually shown as a string when visualized.
Any suggestions on how to handle this?
Summary: Objective: For each unique ID, I want to create two cards—one for category A and another for category B—and display all associated data (which exists across different rows).
Beta Was this translation helpful? Give feedback.
All reactions