Data to colors

Worldbank

Data source

https://data.worldbank.org/country/CY

Source code

https://github.com/hovjdev/CyprusVitalSigns/blob/main/worldbank.py

Algorithm

  1. From an initial set of 1443 time series collected by the World Bank for the country of Cyprus, the 8 features that are the most uncorrelated and continuous are selected and plotted on a line chart.

  2. Principal Component Analysis (PCA) is applied to reduce the set to 3 time series preserving most of the information contained in the original set.

  3. The output of PCA is converted into red, green and blue curves that define a color palette.

Line chart of the 8 most uncorrelated and continuous features

Line chart and color palette

Color palette