Q: How to apply conditional formatting to pivot table dynamically I would like to set conditional formatting in webdatarocks like this:
"conditions": [
        {
            "formula": "AND(#value > 5000, #value < 8000)",
            "format": {
                "backgroundColor": "#3cff00",
                "color": "#FFFFFF"
            }
        }
    ],

But with code, not via user interface.
Any thoughts on how to do that?
Also, can I apply conditional formatting to calculated measures?
Thanks.

A: You can use the setCondition() method to set or update the condition formatting rule in WebDataRocks.
I made a quick demo for you:
https://codepen.io/ronika/pen/OJXQNZw

And here is how you can apply conditional formatting to calculated values on the pivot table:
https://codepen.io/ronika/pen/ExyQyYZ

In this demo, "Revenue" is a calculated value composed of "Price" and "Quantity" measures.
Let me know if that's what you needed.
