1 Reply Latest reply: Jan 27, 2018 5:48 AM by Thiago Justen Teixeira RSS

    Color variation of single bar in bar chat based on condition

    Akansha Kapoor

      Hi All,

      I want to change the color of only one bar in bar chart based on some condition.

      But as I try to all the other bars also gets affected.

      Below is the screenshot of the application

      Capture.PNG

       

      I want the third bar(pink one) to change to red in case its value is less than 10 and to green if it is above 10.Rest bars should remain unaffected.

      Please let me know in case there is any way to implement it.

        • Re: Color variation of single bar in bar chat based on condition
          Thiago Justen Teixeira

          Could you please send us an example app?

           

          As you can see below, I have an example where I'm manipulating colors by expression.

           

          Capturar.PNG

           

          Here is the expression used on it:

           

          If([Nome Cliente]='OI SA' and Count ([Código do Atendimento])>600,rgb(0, 168, 255),

               If([Nome Cliente]='CSU CARDSYSTEM SA' and Count ([Código do Atendimento])<390,rgb(39, 60, 117),

                        If([Nome Cliente]='OI MOVEL SA' and Count ([Código do Atendimento])>750,rgb(251, 197, 49)

                            ,rgb(220, 221, 225)

                            )

                     )

                )

           

          Is something like that you want to?