Hi Raja,
There's an option for dynamic class in the styling tab of each widget.
What you can do is, you can write multiple SCSS classes in your styling SCSS files.
lets assume :
.classRed{
background-color: red;
}
.classGreen{
background-color: green;
}
.classYellow{
background-color: green;
}
Now, in the Dynamic Class part,
you can write something like this:
if $entity/Attribute=0 then 'classRed' else if $entity/Attribute<5 then 'classGreen' else 'classYellow'
Let me know, if you have any issues,
Hope it helps!