Using a color sequence

To use a color sequence specify the name of a color sequence in a color property cell for an object that you insert in your visual project.

About this task

To use a color sequence:

Procedure

  1. Insert an object in your visual project.
  2. From the most convenient view, (Properties, Outline or the Project Explorer), click the color property that will use the color sequence.
  3. Specify the name of the color sequence that you want to use and the index value. There are several ways that you can specify the index value:
    • Literally: You can use a specific number to indicate the index value. For example:
      colorSeq(Colorseq1, 4)

      The color of this object will be the same color as the wedge labeled index 4 in the color wheel of the color sequence named Colorseq1.

    • With an expression: You can create an expression that can be used to calculate the index value. For example:
      colorSeq(Colorseq1,value1 + 5)

      The color of this object will be from the color sequence named Colorseq1. The index value will be calculated by adding 5 to the value of value1.

    • Using a function: You can use a function to generate an index value. For example:
      colorSeq(Colorseq1,PointNumber())

      The PointNumber() function will be used with a color sequence named Colorseq1. The PointNumber() function assigns a unique color to the object for each row returned by a query.