'Hiding a chart based on a condition in VEEML

I've got lots of items in a dimension and the display by default is really bad.

How can I show this chart only if the user select less than 5 items in that dimension ?



Solution 1:[1]

You could use a display condition on the object.

  1. Open the setting window of the chart holding the click on the chart

  2. Fill the change option button with a statement as below:

{"display_condition":{"condition":"COUNT(DISTINCT *your_dimension*)=2", "message":"Please select only 2 items of *your_dimension* to see the chart !"}}

Leave the message property empty to see the default message or just write a space if you don't want any message.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ouflak