"
+ "
Part industrie : " + converters.np0(this.value, 0) + "%"
;}
},
plotOptions: {
mappie: {
animation:{
defer: 0,
duration: 1000
},
borderColor: "#c5c5c5",
borderRadius: 0,
borderWidth: 1,
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"
},
hover: {
borderColor: "#cccccc"
}
},
dataLabels: {
style:{
textOutline: false,
color: "#ffffff",
fontFamily: "Arial",
fontSize: "10px",
fontWeight: "normal",
textDecoration: "none",
fontStyle: "normal"
},
}
}
},
series: [{
mapData: Highcharts.maps["gref_dept"],
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_2197_1879",1,[this.CODE_REGION]);
if(get_drill_level("mapline_selval_2197_1879")){
//click_link_fulldim([this.CODE_REGION, ""], 1879, 2197,["Code Departement"],"YL.TN");
//click_link_ext(this.CODE_REGION);
}else{
//reset_link("1879", "2197");
//click_linkres_ext(this.CODE_REGION);
}
}
}
},
dataLabels: {
enabled: true,
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_dept"], "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();
};
});
$("#container").append(div_menu_n4v);
UpdateFSIcon();
$(document).ready(function(){
AccessibilityDiv("a");
});
$(document).ready(function(){
UpdateDataContent();
});
});