Code: Select all
series: [
/* Main map */
{
keys: ['hc-key', 'value', 'color'],
type: 'map',
name: 'Other zones',
dataLabels: {
enabled: false,
format: '{point.name}',
},
allAreas: false,
data: data.map((x: any) => {
x.push('white');
return x;
}),
},
/* UTC */
{
keys: ['hc-key', 'color'],
color: 'rgb(240,128,128)',
type: 'map',
name: 'UTC',
data: [['IE'], ['IS'], ['GB'], ['PT']].map((x: any) => {
x[0] = x[0].toLowerCase();
x.push('rgb(240,128,128)');
return x;
}),
},
/* UTC + 1 */
{
keys: ['hc-key', 'color'],
color: 'rgb(220,20,60)',
type: 'map',
name: 'UTC + 1',
data: [
['NO'],
['SE'],
...
['MK'],
].map((x: any) => {
x[0] = x[0].toLowerCase();
x.push('rgb(220,20,60)');
return x;
}),
},
/* UTC + 2 */
{
keys: ['hc-key', 'color'],
color: 'rgb(178,34,34)',
type: 'map',
name: 'UTC + 2',
data: [
['FI'],
['EE'],
['LV'],
...
].map((x: any) => {
x[0] = x[0].toLowerCase();
x.push('rgb(178,34,34)');
return x;
}),
},
/* UTC + 3 */
{
keys: ['hc-key', 'color'],
color: 'rgb(139,0,0)',
type: 'map',
name: 'UTC + 3',
data: [
['RU'],
['BR'],
...
,
].map((x: any) => {
console.log(x[0])
x[0] = x[0].toLowerCase();
x.push('rgb(139,0,0)');
return x;
}),
},
{
keys: ['hc-key', 'color'],
color: 'rgb(119,0,0)',
type: 'map',
name: 'UTC + 4',
data: [
].map((x: any) => {
console.log(x[0])
x[0] = x[0].toLowerCase();
x.push('rgb(139,0,0)');
return x;
}),
},
],