13 Replies Latest reply: Dec 7, 2017 11:32 AM by Shahbaz Khan Mohammed RSS

    Color Bar Chart

    ra ta

      Hi, I have a bar chart displaying two variables, Foreign Sales and Domestic Sales that I draw one next to the other per product.


      I am trying to have each one in different color and i tried the following under Colors and legend, Colors custom, By expression:


      if('Foreign Sales', red() ,if('Domestic Sales', green()))


      But the above did not work. Any suggestion how to fix this code please?


      Thanks very much.