Calculate Gradient Colour


Name: Calculate Gradient Colour
Author: Stephane Vellay
Version: 1.3
Created: 5/2009
Updated: 12/2009

Purpose: Define a colour gradient with markers and Interpolates a value to generate a colour.

A Hexadecimal Colour is interpolated between 2 Marked Values for each record from a property named Value (by default) and assigned to a property named ColourHex (by default). You can interpolate between additional colours. Use the Gradient Markers parameter to add, remove and reorder markers in the gradient. The lowest Marked Value Colour is assigned to all Values less than the lowest Marked Value. The highest Marked Value Colour is assigned to all Values greater than the highest Marked Value.

Requirements: PP Generic to calculate the Hexadecimal Colour, Reporting collection to use it in the example protocols, The Rainbow example protocol is using the Data Connector of PP 7.5 CU1, but it is not mandatory.
Limitations: Marked Values must be sorted: Marked Value 1 <= Marked Value 2 <= Marked Value 3, etc. Use the Gradient Markers parameter to add, remove and reorder markers in the gradient.
Keyword: reporting colour color gradient rainbow

Contents:
Component

  • Calculate Colour Gradient.xml

Example Protocols

  • Gradient Between Calculated Properties.xml
  • Rainbow from Gradient Markers.xml
  • Readable Text on Gradient Colour Background.xml