25 Replies Latest reply: Sep 23, 2017 2:10 AM by Shraddha Gajare RSS

    Color by Expression - Line Chart and Pie Chart

    Hannah Lines

      Hello,

      I have a line chart and a bar chart in which I want to use the same expression to color.

      Below is the expression and a screen shot of the two charts.

       

      Is there a reason that they pie chart colors wouldn't work?

       

      IF([Code] = '91'

      ,red()

          ,IF ([Code] = '83'

          ,blue()

              ,If([Code] = '84'

                  ,yellow()

              ,green()

                      )

              )

         )

       

      line and pie colors.jpg