In order to allow users to interact and to zoom on specific
values or approaches on Elastic Search, users can provide a color policy
and choose their color combinations. The color of each item is generated
relatively to its weight. So a brighter background indicates a higher
weight (occurrence) of the metadata value compared to the overall
values. To visualize these characteristics, the developer can set the
property is used to choose the policy that the user wishes to use to
create his color distribution. This property can get three possible
values: bichromatic, monochromatic or spectrum.
firtColor: this color is used
to choose the color of the item that has the lowest weight. The color
code should be decimal initialized by an '0X'. for example the black
color is set : 0x000000
lastColor: this property is
used to set the color of the metadata value that has the highest
weight. The color should have the same format as the firstcolor
These are the possible scenarios:
No coloring property is introduced. Elastic Search uses the
spectrum policy that is defined as a default policy.
The firstcolor is set: the monochromatic policy is used
The first and the last color are defined: Elastic Search uses
the bichromatic policy to generate to color of each item. The colors
are generated using the RGB (Red,Green,Blue) system and the occurrence
of each metadata value compared to the overall souce.