GetColourMap

The GetColourMap function of the AQLHistResponse class returns a dictionary used to convert numerical values into colours.

This function is generally suitable for discrete values. Additional logic will be needed to interpolate between colours on continuous values. You might want to consider GetColumnColour or GetAnalogueColourMap when working with continuous numbers.

Parameters
ParameterTypeDefaultMeaning
colstrThe name of the column
valfloatThe value to be converted to a colour
Return

Returns a dictionary of values, each containing a single colour code. This will be a tuple containing the red, green and blue values for the colour.