-
Notifications
You must be signed in to change notification settings - Fork 1
/
data-general.js
213 lines (205 loc) · 3.48 KB
/
data-general.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
// Country-independent data
"use strict";
const countryNamesByCode =
// Note: The entries and their order has to be consistent to country-flags.png.
// Regular countries:
{ "AE": "United Arab Emirates"
, "AR": "Argentina"
, "AT": "Austria"
, "AU": "Australia"
, "BE": "Belgium"
, "BR": "Brazil"
, "CA": "Canada"
, "CH": "Switzerland"
, "CN": "China"
, "CZ": "Czechia"
, "DE": "Germany"
, "DK": "Denmark"
, "ES": "Spain"
, "FI": "Finland"
, "FR": "France"
, "ID": "Indonesia"
, "IE": "Ireland"
, "IL": "Israel"
, "IN": "India"
, "IS": "Iceland"
, "IT": "Italy"
, "JP": "Japan"
, "KR": "South Korea"
, "MX": "Mexico"
, "MY": "Malaysia"
, "NL": "Netherlands"
, "NO": "Norway"
, "NZ": "New Zealand"
, "PL": "Poland"
, "PT": "Portugal"
, "RO": "Romania"
, "RU": "Russia"
, "SA": "Saudi Arabia"
, "SE": "Sweden"
, "SG": "Singapore"
, "SI": "Slovenia"
, "SK": "Slovakia"
, "TH": "Thailand"
, "TR": "Turkey"
, "TW": "Taiwan"
, "UK": "United Kingdom"
, "US": "United States"
, "VN": "Vietnam"
, "ZA": "South Africa"
// Mixed countries:
, "EU": "Europe"
, "CN/DE": "China / Germany"
, "US/EU": "United States / Europe"
, "JP/EU": "Japan / Europe"
};
const colorSet =
[ "#E83835"
, "#1469AA"
, "#43A047"
, "#F78300"
, "#31CEE0"
, "#FFCC00"
, "#8025A8"
, "#8C8C8C"
, "#16545B"
, "#795548"
, "#A00000"
, "#000E8E"
, "#024C00"
, "#8C4D00"
, "#87711C"
, "#93F296"
, "#8B66DD"
, "#C0CA33"
, "#E52984"
, "#FFBB68"
];
const colorIndexByCompanyGroup =
{ "Volkswagen Group": 1
, "Renault-Nissan-Mitsubishi": 3
, "BMW Group": 4
, "Stellantis": 9
, "Hyundai Motor Group": 10
, "Geely Holding Group": 16
};
const colorIndexByBrand =
{ "Tesla": 0
, "Volkswagen": 1
, "Smart": 2
, "Renault": 3
, "BMW": 4
, "Chevrolet": 5
, "Audi": 6
, "Mercedes-Benz": 7
, "Jaguar": 8
, "Peugeot": 9
, "Kia": 10
, "Hyundai": 11
, "Toyota": 12
, "Fiat": 13
, "Opel": 14
, "Škoda": 15
, "Volvo": 16
, "Ford": 17
};
// Company goups, sorted by all car sales
const companyGroups = {
"Stellantis":
[ "Citroën"
, "Fiat"
, "Jeep"
, "Jeep/Dodge"
, "Opel"
, "Peugeot"
, "Vauxhall"
],
"Volkswagen Group":
[ "Audi"
, "Cupra"
, "Porsche"
, "Seat"
, "Škoda"
, "Volkswagen"
],
"Hyundai Motor Group":
[ "Hyundai"
, "Kia"
],
"Renault-Nissan-Mitsubishi":
[ "Dacia"
, "Mitsubishi"
, "Nissan"
, "Renault"
],
"BMW Group":
[ "BMW"
, "Mini"
],
"Geely Holding Group":
[ "Geely"
, "Polestar"
, "Volvo"
],
"Jaguar Land Rover":
[ "Jaguar"
, "Land Rover"
],
"SAIC Motor":
[ "Baojun"
, "MG"
, "Wuling"
]
};
const companyGroupCountries =
{ "Stellantis": "US/EU"
, "Volkswagen Group": "EU"
, "Hyundai Motor Group": "KR"
, "Renault-Nissan-Mitsubishi": "JP/EU"
, "BMW Group": "DE"
, "Geely Holding Group": "CN"
, "Jaguar Land Rover": "UK"
, "SAIC Motor": "CN"
};
const brandCountries =
{ "Aion": "CN"
, "Audi": "DE"
, "BAIC": "CN"
, "BYD": "CN"
, "Changan": "CN"
, "Chery": "CN"
, "Chevrolet": "US"
, "Citroën": "FR"
, "Cupra": "ES"
, "Dacia": "RO"
, "Fiat": "IT"
, "Ford": "US"
, "GWM": "CN"
, "Hawtai": "CN"
, "Honda": "JP"
, "Isuzu": "JP"
, "JAC": "CN"
, "Jeep/Dodge": "US"
, "Jeep": "US"
, "JMC": "CN"
, "Mazda": "JP"
, "Mercedes-Benz": "DE"
, "Mitsubishi": "JP"
, "Nio": "CN"
, "Nissan": "JP"
, "Opel": "DE"
, "Peugeot": "FR"
, "Polestar": "SE"
, "Porsche": "DE"
, "Renault": "FR"
, "Seat": "ES"
, "Škoda": "CZ"
, "Smart": "CN/DE"
, "Subaru": "JP"
, "Suzuki": "JP"
, "Tesla": "US"
, "Toyota": "JP"
, "Vauxhall": "UK"
, "Volkswagen": "DE"
, "Volvo": "SE"
};