Skip to content

Commit

Permalink
Added more color schemas to color heat maps
Browse files Browse the repository at this point in the history
1. **GREEN_YELLOW_RED**: Green for gains, Red for losses, Yellow for neutral values.
2. **GREEN_WHITE_RED**: Green for gains, White for neutral, Red for losses.
3. **GREEN_GRAY_RED**: Green for gains, Red for losses, Grey for neutral.
4. **BLUE_GRAY_ORANGE**: Blue for stable values, Orange for volatile values, Grey for neutral.
5. **BLACK_WHITE_YELLOW**: Black for extreme gains, Yellow for moderate returns, White for neutral.

Updated the interpolate method to clamp the factor parameter between
0 and 1. This ensures that the method handles out-of-bounds values
properly, preventing unexpected results and invalid RGB values.

Issue: #4306
  • Loading branch information
Nirus2000 authored and buchen committed Nov 29, 2024
1 parent 6034f16 commit 1c5c05a
Show file tree
Hide file tree
Showing 18 changed files with 236 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ public class Messages extends NLS
public static String LabelBeforeTaxAndFees;
public static String LabelBenchmarks;
public static String LabelBiggerSize;
public static String LabelBlueGrayOrange;
public static String LabelCapitalGains;
public static String LabelCategoryOtherMovements;
public static String LabelChartDetailChartDevelopment;
Expand Down Expand Up @@ -674,6 +675,7 @@ public class Messages extends NLS
public static String LabelFontSize;
public static String LabelFormatJSON;
public static String LabelFullClassification;
public static String LabelGreenGrayRed;
public static String LabelGreenWhiteRed;
public static String LabelGreenYellowRed;
public static String LabelGross;
Expand Down Expand Up @@ -901,6 +903,7 @@ public class Messages extends NLS
public static String LabelXDays;
public static String LabelYear;
public static String LabelYearlyHeatmap;
public static String LabelYellowWhiteBlack;
public static String LabelYes;
public static String LabelYTD;
public static String MarkSecurityPageDescription;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,8 @@ LabelBenchmarks = Benchmarks

LabelBiggerSize = Bigger

LabelBlueGrayOrange = Blue - Grey - Orange

LabelCapitalGains = Capital Gains

LabelCategoryOtherMovements = Other Movements
Expand Down Expand Up @@ -1340,6 +1342,8 @@ LabelFormatJSON = JSON format

LabelFullClassification = Full Classification

LabelGreenGrayRed = Green - Grey -Red

LabelGreenWhiteRed = Green - White - Red

LabelGreenYellowRed = Green - Yellow - Red
Expand Down Expand Up @@ -1796,6 +1800,8 @@ LabelYear = Year

LabelYearlyHeatmap = Yearly returns in a heat map

LabelYellowWhiteBlack = Yellow - White - Black

LabelYes = Yes

MarkSecurityPageDescription = The selected items will be marked as stock indexes. Indexes have no currency.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ LabelBenchmarks = Benchmark

LabelBiggerSize = V\u011Bt\u0161\u00ED

LabelBlueGrayOrange = Modr\u00E1 - \u0160ed\u00E1 - Oran\u017Eov\u00E1

LabelCapitalGains = Kapit\u00E1lov\u00E9 v\u00FDnosy

LabelCategoryOtherMovements = Ostatn\u00ED pohyby
Expand Down Expand Up @@ -1330,6 +1332,8 @@ LabelFormatJSON = JSON form\u00E1t

LabelFullClassification = Kompletn\u00ED klasifikace

LabelGreenGrayRed = Zelen\u00E1 - \u0160ed\u00E1 - \u010Cerven\u00E1

LabelGreenWhiteRed = Zelen\u00E1 - b\u00EDl\u00E1 - \u010Derven\u00E1

LabelGreenYellowRed = Zelen\u00E1 - \u017Elut\u00E1 - \u010Derven\u00E1
Expand Down Expand Up @@ -1784,6 +1788,8 @@ LabelYear = Rok

LabelYearlyHeatmap = Ro\u010Dn\u00ED v\u00FDnosy v tepeln\u00E9 map\u011B

LabelYellowWhiteBlack = \u017Dlut\u00E1 - B\u00EDl\u00E1 - \u010Cern\u00E1

LabelYes = Ano

MarkSecurityPageDescription = Vybran\u00E9 polo\u017Eky budou ozna\u010Den\u00E9 jako akciov\u00E9 indexy. Indexy nemaj\u00ED m\u011Bnu.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Ydeevner
LabelBiggerSize = St\u00F8rre
LabelBlueGrayOrange = Bl\u00E5 - Gr\u00E5 - Orange
LabelCapitalGains = Kapitalgevinster
LabelCategoryOtherMovements = Andre bev\u00E6gelser
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = JSON Format
LabelFullClassification = Fuld klassifisering
LabelGreenGrayRed = Gr\u00F8n - Gr\u00E5 - R\u00F8d
LabelGreenWhiteRed = Gr\u00F8n - Hvid - R\u00F8d
LabelGreenYellowRed = Gr\u00F8n - Gul - R\u00F8d
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = \u00C5r
LabelYearlyHeatmap = \u00C5rlige afkast i et varmekort
LabelYellowWhiteBlack = Gul - Hvid - Sort
LabelYes = Ja
MarkSecurityPageDescription = De valgte enheder vil blive markeret som aktieindeks. Indekser har ingen valuta.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,8 @@ LabelBenchmarks = Benchmarks

LabelBiggerSize = Gr\u00F6\u00DFer

LabelBlueGrayOrange = Blau - Grau - Orange

LabelCapitalGains = Kurserfolge

LabelCategoryOtherMovements = Sonstige Bewegungen
Expand Down Expand Up @@ -1333,6 +1335,8 @@ LabelFormatJSON = JSON formatieren

LabelFullClassification = Komplette Klassifizierung

LabelGreenGrayRed = Gr\u00FCn - Grau - Rot

LabelGreenWhiteRed = Gr\u00FCn - Wei\u00DF - Rot

LabelGreenYellowRed = Gr\u00FCn - Gelb - Rot
Expand Down Expand Up @@ -1789,6 +1793,8 @@ LabelYear = Jahr

LabelYearlyHeatmap = Jahresrenditen in einer Heatmap

LabelYellowWhiteBlack = Gelb - Wei\u00DF - Schwarz

LabelYes = Ja

MarkSecurityPageDescription = Im Gegensatz zu Aktien haben Indizes keine W\u00E4hrung. Die ausgew\u00E4hlten Papiere werden ohne W\u00E4hrung konfiguriert.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Referencias

LabelBiggerSize = M\u00E1s grande

LabelBlueGrayOrange = Azul - Gris - Naranja

LabelCapitalGains = Ganancias de capital

LabelCategoryOtherMovements = Otros movimientos
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Formato JSON

LabelFullClassification = Clasificaci\u00F3n completa

LabelGreenGrayRed = Verde - Gris - Rojo

LabelGreenWhiteRed = Verde - Neutro - Rojo

LabelGreenYellowRed = Verde - Amarillo - Rojo
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = A\u00F1o

LabelYearlyHeatmap = Rentabilidad anual en mapa de calor

LabelYellowWhiteBlack = Amarillo - Blanco - Negro

LabelYes = S\u00ED

MarkSecurityPageDescription = Los elementos seleccionados se marcar\u00E1n como \u00EDndices burs\u00E1tiles (que no tienen divisa).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ LabelBenchmarks = Benchmarks

LabelBiggerSize = Plus gros

LabelBlueGrayOrange = Bleu - Gris - Orange

LabelCapitalGains = Gains en capital

LabelCategoryOtherMovements = Autres mouvements
Expand Down Expand Up @@ -1330,6 +1332,8 @@ LabelFormatJSON = Format JSON

LabelFullClassification = Classification compl\u00E8te

LabelGreenGrayRed = Vert - Gris - Rouge

LabelGreenWhiteRed = Vert - Blanc - Rouge

LabelGreenYellowRed = Vert - Jaune - Rouge
Expand Down Expand Up @@ -1786,6 +1790,8 @@ LabelYear = Ann\u00E9e

LabelYearlyHeatmap = Carte de chaleur des rendements annuels

LabelYellowWhiteBlack = Jaune - Blanc - Noir

LabelYes = Oui

MarkSecurityPageDescription = Les \u00E9l\u00E9ments s\u00E9lectionn\u00E9s seront marqu\u00E9s comme indices boursiers. Les indices n'ont pas de devise.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Benchmark
LabelBiggerSize = Pi\u00F9 grande
LabelBlueGrayOrange = Blu - Grigio - Arancione
LabelCapitalGains = Profitti in capitale
LabelCategoryOtherMovements = Altri movimenti
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Formato JSON
LabelFullClassification = Classifica completa
LabelGreenGrayRed = Verde - Grigio - Rosso
LabelGreenWhiteRed = Verde - Bianco - Rosso
LabelGreenYellowRed = Verde - Giallo - Rosso
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = Anno
LabelYearlyHeatmap = Rendimenti annuali in mappa termica
LabelYellowWhiteBlack = Giallo - Bianco - Nero
LabelYes = S\u00EC
MarkSecurityPageDescription = Le voci selezionate verranno contrassegnate come indici di borsa. Gli indici non hanno valuta.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Benchmarks
LabelBiggerSize = Groter
LabelBlueGrayOrange = Blauw - Grijs - Oranje
LabelCapitalGains = Resultaat
LabelCategoryOtherMovements = Overige resultaten
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Formaat JSON
LabelFullClassification = Volledige classificatie
LabelGreenGrayRed = Groen - Grijs - Rood
LabelGreenWhiteRed = Groen - Wit - Rood
LabelGreenYellowRed = Groen - Geel - Rood
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = Jaar
LabelYearlyHeatmap = Rendement per jaar (heatmap)
LabelYellowWhiteBlack = Geel - Wit - Zwart
LabelYes = Ja
MarkSecurityPageDescription = De geselecteerde items worden als 'index' gelabeld. Indices kennen geen valuta-aanduiding.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Benchmarks

LabelBiggerSize = Wi\u0119ksze

LabelBlueGrayOrange = Niebieski - Szary - Pomara\u0144czowy

LabelCapitalGains = Zyski kapita\u0142owe

LabelCategoryOtherMovements = Inne ruchy
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Format JSON

LabelFullClassification = Pe\u0142na klasyfikacja

LabelGreenGrayRed = Zielony - Szary - Czerwony

LabelGreenWhiteRed = Zielony - Bia\u0142y - Czerwony

LabelGreenYellowRed = Zielony - \u017B\u00F3\u0142ty - Czerwony
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = Rok
LabelYearlyHeatmap = Roczne zwroty jako "mapa cieplna"
LabelYellowWhiteBlack = \u017B\u00F3\u0142ty - Bia\u0142y - Czarny
LabelYes = Tak
MarkSecurityPageDescription = Wybrane pozycje zostan\u0105 oznaczone jako indeksy gie\u0142dowe. Indeksy nie maj\u0105 waluty.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Refer\u00EAncia

LabelBiggerSize = Maior

LabelBlueGrayOrange = Azul - Cinza - Laranja

LabelCapitalGains = Ganho de Capital

LabelCategoryOtherMovements = Outros Movimentos
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Formato JSON

LabelFullClassification = Classifica\u00E7\u00E3o completa

LabelGreenGrayRed = Verde - Cinza - Vermelho

LabelGreenWhiteRed = Verde - Branco - Vermelho

LabelGreenYellowRed = Verde - Amarelo - Vermelho
Expand Down Expand Up @@ -1783,6 +1787,8 @@ LabelYear = Ano

LabelYearlyHeatmap = Retornos anual em um mapa de calor

LabelYellowWhiteBlack = Branco - Amarelo - Preto

LabelYes = Sim

MarkSecurityPageDescription = Os itens selecionados ser\u00E3o marcados como \u00EDndices de a\u00E7\u00F5es. Os \u00EDndices n\u00E3o t\u00EAm moeda.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Benchmarks

LabelBiggerSize = Maior

LabelBlueGrayOrange = Azul - Cinza - Laranja

LabelCapitalGains = Ganho de Capital

LabelCategoryOtherMovements = Outros Movimentos
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Formato JSON

LabelFullClassification = Classifica\u00E7\u00E3o completa

LabelGreenGrayRed = Verde - Cinza - Vermelho

LabelGreenWhiteRed = Verde - Branco - Vermelho

LabelGreenYellowRed = Verde - Amarelo - Vermelho
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = Ano

LabelYearlyHeatmap = Retornos anual em um mapa de calor

LabelYellowWhiteBlack = Amarelo - Branco - Preto

LabelYes = Sim

MarkSecurityPageDescription = Os itens selecionados ser\u00E3o marcados como \u00EDndices de a\u00E7\u00F5es. Os \u00EDndices n\u00E3o t\u00EAm moeda.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = \u0411\u0435\u043D\u0447\u043C\u0430\u0440\u043A\u0438

LabelBiggerSize = \u0411\u043E\u043B\u044C\u0448\u0435

LabelBlueGrayOrange = \u0421\u0438\u043D\u0438\u0439 - \u0421\u0435\u0440\u044B\u0439 - \u041E\u0440\u0430\u043D\u0436\u0435\u0432\u044B\u0439

LabelCapitalGains = \u041F\u0440\u0438\u0440\u043E\u0441\u0442 \u043A\u0430\u043F\u0438\u0442\u0430\u043B\u0430

LabelCategoryOtherMovements = \u0414\u0440\u0443\u0433\u0438\u0435 \u0434\u0432\u0438\u0436\u0435\u043D\u0438\u044F
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = JSON \u0444\u043E\u0440\u043C\u0430\u0442

LabelFullClassification = \u041F\u043E\u043B\u043D\u0430\u044F \u043A\u043B\u0430\u0441\u0441\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F

LabelGreenGrayRed = \u0417\u0435\u043B\u0435\u043D\u044B\u0439 - \u0421\u0435\u0440\u044B\u0439 - \u041A\u0440\u0430\u0441\u043D\u044B\u0439

LabelGreenWhiteRed = \u0417\u0435\u043B\u0435\u043D\u044B\u0439 - \u0411\u0435\u043B\u044B\u0439 - \u041A\u0440\u0430\u0441\u043D\u044B\u0439

LabelGreenYellowRed = \u0417\u0435\u043B\u0435\u043D\u044B\u0439 - \u0416\u0435\u043B\u0442\u044B\u0439 - \u041A\u0440\u0430\u0441\u043D\u044B\u0439
Expand Down Expand Up @@ -1783,6 +1787,8 @@ LabelYear = \u0413\u043E\u0434

LabelYearlyHeatmap = \u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0434\u043E\u0445\u043E\u0434\u043D\u043E\u0441\u0442\u044C \u043D\u0430 \u0442\u0435\u043F\u043B\u043E\u0432\u043E\u0439 \u043A\u0430\u0440\u0442\u0435

LabelYellowWhiteBlack = \u0416\u0435\u043B\u0442\u044B\u0439 - \u0411\u0435\u043B\u044B\u0439 - \u0427\u0435\u0440\u043D\u044B\u0439

LabelYes = \u0414\u0430

MarkSecurityPageDescription = \u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u044B \u043A\u0430\u043A \u0444\u043E\u043D\u0434\u043E\u0432\u044B\u0435 \u0438\u043D\u0434\u0435\u043A\u0441\u044B. \u0423 \u0438\u043D\u0434\u0435\u043A\u0441\u043E\u0432 \u043D\u0435\u0442 \u0432\u0430\u043B\u044E\u0442\u044B.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ LabelBenchmarks = Referen\u010Dn\u00E9 hodnoty
LabelBiggerSize = V\u00E4\u010D\u0161ie
LabelBlueGrayOrange = Modr\u00E1 - Siv\u00E1 - Oran\u017Eov\u00E1
LabelCapitalGains = Kapit\u00E1lov\u00E9 zisky
LabelCategoryOtherMovements = In\u00E9 pohyby
Expand Down Expand Up @@ -1329,6 +1331,8 @@ LabelFormatJSON = Form\u00E1t JSON
LabelFullClassification = \u00DApln\u00E1 klasifik\u00E1cia
LabelGreenGrayRed = Zelen\u00E1 - Siv\u00E1 - \u010Cerven\u00E1
LabelGreenWhiteRed = Zelen\u00E1 - biela - \u010Derven\u00E1
LabelGreenYellowRed = Zelen\u00E1 - \u017Elt\u00E1 - \u010Derven\u00E1
Expand Down Expand Up @@ -1785,6 +1789,8 @@ LabelYear = Rok
LabelYearlyHeatmap = Ro\u010Dn\u00E9 v\u00FDnosy v heatmap
LabelYellowWhiteBlack = \u017Dlt\u00E1 - Biela - \u010Cierna
LabelYes = \u00C1no
MarkSecurityPageDescription = Vybran\u00E9 polo\u017Eky bud\u00FA ozna\u010Den\u00E9 ako akciov\u00E9 indexy. Indexy nemaj\u00FA \u017Eiadnu menu.
Expand Down
Loading

0 comments on commit 1c5c05a

Please sign in to comment.