Hello everyone! I managed to get the interaction where clicking on a bar in a CCC bar chart component will filter the values in a separate Table component.
I.E.: Clicking on the 'Animal' bar will show only items with category 'Animal' in my table. If anyone is looking for this solution:
- Create parameter
- Add it to listeners & parameters in your table
- Add it to parameters in your datasource and adjust the query to utilize the paramter accordingly (making sure that the data types match up, likely STRING. Also making sure you are using ${parameter})
- Add to parameters in your chart
- Toggle clickable = True
- clickAction: function(){ Dashboards.fireChange('your_parameter_here', this.scene.atoms.category.value); }
My question is if anyone has been able to have it so that this interaction works appropriately when you click or highlight more than one category. Ex: If I click on the 'Animal' bar and then CTRL+click on the 'Food' bar, then my table will show only items with either the category 'Food' or 'Animal'.
I don't even know if this is possible in the current stage. Does anyone have any ideas or has anyone done this/something similar successfully?
I.E.: Clicking on the 'Animal' bar will show only items with category 'Animal' in my table. If anyone is looking for this solution:
- Create parameter
- Add it to listeners & parameters in your table
- Add it to parameters in your datasource and adjust the query to utilize the paramter accordingly (making sure that the data types match up, likely STRING. Also making sure you are using ${parameter})
- Add to parameters in your chart
- Toggle clickable = True
- clickAction: function(){ Dashboards.fireChange('your_parameter_here', this.scene.atoms.category.value); }
My question is if anyone has been able to have it so that this interaction works appropriately when you click or highlight more than one category. Ex: If I click on the 'Animal' bar and then CTRL+click on the 'Food' bar, then my table will show only items with either the category 'Food' or 'Animal'.
I don't even know if this is possible in the current stage. Does anyone have any ideas or has anyone done this/something similar successfully?