"
+ "
Nombre : " + converters.np0(this.value, 2) + ""
;}
},
plotOptions: {
mappie: {
animation:{
defer: 0,
duration: 1000
},
borderColor: "#c5c5c5",
borderWidth: 0,
tooltip: {
headerFormat: ""
}
},
mappoint: {
enableMouseTracking: false,
zIndex: 2,
showInLegend: false,
colorAxis: 2,
dataLabels: {
enabled: undefined,
style:{
textOutline: undefined,
color: "undefined",
fontFamily: "undefined",
fontSize: "undefinedpx",
fontWeight: "undefined",
textDecoration: "undefined",
fontStyle: "undefined"
},
}
},
series: {
allowPointSelect: true,
states: {
inactive: {
opacity: 1
},
select: {
enabled: true,
color: "#ff0000"
},
},
dataLabels: {
style:{
textOutline: "1px contrast",
color: "#ffffff",
fontFamily: "Arial",
fontSize: "8px",
fontWeight: "normal",
textDecoration: "plain",
fontStyle: "normal"
},
}
}
},
series: [{
mapData: Highcharts.maps["gref_ctef"],
data: data,
name: "States",
zIndex: 1,
colorAxis: 1,
borderColor: "#ffffff",
nullColor: "#f7f7f7",
showInLegend: false,
joinBy: ["code", "CODE_REGION"],
keys: ["CODE_REGION", "DimGraphList_0","DimGraphList_tot", "valSize", "value", "pieOffset"],
point: {
events: {
click: function () {
store_drill_level("mapline_selval_14_13",1,[this.CODE_REGION]);
//click_link_fulldim([this.CODE_REGION, ""], 13, 14,["Code Ctef"]);
//click_link_ext(this.CODE_REGION);
}
}
},
dataLabels: {
enabled: false,
formatter: function () {
if(all_codes.includes(this.point.properties["code"]))
return this.point.properties["name"];
else
return "";
}
}
},
{
name: "Separators",
type: "mapline",
data: Highcharts.geojson(Highcharts.maps["gref_ctef"], "mapline"),
color: "#707070",
showInLegend: false,
enableMouseTracking: false
}, {
name: "Connectors",
type: "mapline",
color: "rgba(130, 130, 130, 0.5)",
zIndex: 5,
showInLegend: false,
enableMouseTracking: false
},
]
});
mainchart = chart;
chart.legend.allItems.forEach(function (item) {
var old = item.setVisible;
item.setVisible = function () {
var legendItem = this;
old.call(legendItem);
chart.series[0].points.forEach(function (point) {
if (chart.colorAxis[0].dataClasses[point.dataClass].name === legendItem.name) {
Highcharts.find(chart.series, function (item) {
return item.name === point.CODE_REGION;
}).setVisible(legendItem.visible, false);
var connector = Highcharts.find(chart.series[2].points, function (item) {
return item.name === point.CODE_REGION;
});
if (connector) {
connector.setVisible(legendItem.visible, false);
}
}
});
first_draw=true;
chart.redraw();
};
});
});