Is there possibility we can hide the "Data visualization" Based on the filter condition we apply?

kishorkumar
Tera Contributor

Hi folks,

 

  I have a requirement in UI builder - "Is there any possibility we can hide the "Data visualization component" Based on the filter condition we apply?" 

 

 

 

 

 

7 REPLIES 7

Dibyaratnam
Tera Sage

You can hide a data visualization component by passing value in the Hide component section of any component. Based on true or false value it hides or unhides. You can set that true or false value with

1) static value set i.e directly passing true or false

2) Dynamically setting the value using state parameter, context parameter or data source values.

3) Using scripts.

As per your question, you have not mentioned where the filter condition will be applied. so my question would be where's the filter condition being set. Once you apply the filter, set a state parameter to true or false depending on your requirement and use that state parameter in Hide component section of Data viz component and you should be able to hide it.

Hi @Dibyaratnam  Thanks for your reply

 

so I have a filter component in the form and also Data viz component if i click some of the value, not all data viz component have data if no data means it needs to hide.

Dibyaratnam
Tera Sage

Can you share any screenshot of your page and where you are clicking and currently how does it behave and what's your requirement. 

Are you getting no records to display message on data viz?

Hello  @Dibyaratnam , I need your help.

I have a requirement in UI Builder -  I need to hide the data visualization component if there is no data in the component, Kindly help me with the scripting or if you have any sample scripts please let me know.