'How to apply custom theme to the visuals?

I have an embedded report in which I want to set the theme of the visuals according to the even and odd number of visuals. I am able to check the number of visuals by getting count of all the filters. Can anyone suggest how can I apply the theme to the visuals ?



Sources

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

Source: Stack Overflow

Solution Source