Coloring Of Bars

Coloring of the bars will be based on the following conditions.

IF reading within LSL & USL then

 IF reading <UCL and reading >LCL then

  IF reading > nominal value then

   Bar will be colored as green from

  Nominal value to right side  

  ELSE

   Bar will be colored as green from

Nominal value to left side  

  END

 ELSE

  IF reading > nominal value then

   Bar will be colored as yellow from

Nominal value to right side  

  ELSE

   Bar will be colored as yellow from

Nominal value to left side   

  END

 END

ELSE

 IF reading > nominal value then

  Bar will be colored as red from

Nominal value to right side  

 ELSE

  Bar will be colored as red from

Nominal value to left side  

  END

END