I have created a BloX template named Rate to display simple conditional image base off data value
This is for simple use case where an image is conditionally display base off the rate given from the panel data. As the panel data change, it will change the corresponding image.
We can also display with carousal off shown as above or on shown as below
I have also added a gif image as a background to display BloX functionality with gif.
The condition is define in the beginning of the json code.
This gives a clear definition on which image to use when the number are within each range.
The class "conditional_data" is then set above the text value of your container as well as the class "conditional_image is set above the image url tag that you want to display
1. Download the attached template
2. Click the 3dots on the right in a Blox widget, click import template and drag it in.
3. You should now be able to see and choose the new template.
If you cannot see the template in the All Templates menu, please restart the Sisense.blox service on your Sisense server.
5. Populate the Items and Values panels with relevant fields and aggregations. Please note that any change in panel item names should be reflected in the card editor.
Please sign in to leave a comment.