Hi Narayan,
Assuming you’re using an enum for the 3 values, i recommend you to use the Dynamic classes (https://appstore.home.mendix.com/link/app/108838/) widget. With this widget you can (after you created the classes) select a class per value which will be shown.
With kind regards,
Bryan de Wit