"
var div_menu_n4v = "";
var content_data = {
title: "Vue des données",
width: 362.4000000000824,
height: 392.8000000000893,
pagination: "",
duration: 800,
container: "#container",
headers: ["d1|Année","d2|lib-fap22","m1|Sortants_arr",],
locale: "fr",
mes_fmt: {"Sortants_arr":{"title":"Nombre de sortants","precision":"0","unit":""}},
thousand: " ",
decimal: ".",
data: [{d1:"2017",d2:"Administration publique, professions juridiques, armée et police",m1:910},{d1:"2018",d2:"Administration publique, professions juridiques, armée et police",m1:970},{d1:"2019",d2:"Administration publique, professions juridiques, armée et police",m1:1160},{d1:"2020",d2:"Administration publique, professions juridiques, armée et police",m1:1420},{d1:"2021",d2:"Administration publique, professions juridiques, armée et police",m1:2490},{d1:"2017",d2:"Agriculture, marine, pêche",m1:1810},{d1:"2018",d2:"Agriculture, marine, pêche",m1:1590},{d1:"2019",d2:"Agriculture, marine, pêche",m1:1780},{d1:"2020",d2:"Agriculture, marine, pêche",m1:1690},{d1:"2021",d2:"Agriculture, marine, pêche",m1:2650},{d1:"2017",d2:"Artisanat",m1:160},{d1:"2018",d2:"Artisanat",m1:150},{d1:"2019",d2:"Artisanat",m1:180},{d1:"2020",d2:"Artisanat",m1:180},{d1:"2021",d2:"Artisanat",m1:210},{d1:"2017",d2:"Banque et assurances",m1:220},{d1:"2018",d2:"Banque et assurances",m1:220},{d1:"2019",d2:"Banque et assurances",m1:460},{d1:"2020",d2:"Banque et assurances",m1:300},{d1:"2021",d2:"Banque et assurances",m1:680},{d1:"2017",d2:"Bâtiment, travaux publics",m1:3480},{d1:"2018",d2:"Bâtiment, travaux publics",m1:2230},{d1:"2019",d2:"Bâtiment, travaux publics",m1:2910},{d1:"2020",d2:"Bâtiment, travaux publics",m1:2890},{d1:"2021",d2:"Bâtiment, travaux publics",m1:4330},{d1:"2017",d2:"Commerce",m1:2820},{d1:"2018",d2:"Commerce",m1:2280},{d1:"2019",d2:"Commerce",m1:2450},{d1:"2020",d2:"Commerce",m1:2510},{d1:"2021",d2:"Commerce",m1:3290},{d1:"2017",d2:"Communication, information, art et spectacle",m1:1780},{d1:"2018",d2:"Communication, information, art et spectacle",m1:1370},{d1:"2019",d2:"Communication, information, art et spectacle",m1:1630},{d1:"2020",d2:"Communication, information, art et spectacle",m1:1470},{d1:"2021",d2:"Communication, information, art et spectacle",m1:3510},{d1:"2017",d2:"Électricité, électronique",m1:160},{d1:"2018",d2:"Électricité, électronique",m1:110},{d1:"2019",d2:"Électricité, électronique",m1:90},{d1:"2020",d2:"Électricité, électronique",m1:110},{d1:"2021",d2:"Électricité, électronique",m1:110},{d1:"2017",d2:"Enseignement, formation",m1:1170},{d1:"2018",d2:"Enseignement, formation",m1:960},{d1:"2019",d2:"Enseignement, formation",m1:1000},{d1:"2020",d2:"Enseignement, formation",m1:850},{d1:"2021",d2:"Enseignement, formation",m1:1160},{d1:"2017",d2:"Études et recherche",m1:190},{d1:"2018",d2:"Études et recherche",m1:160},{d1:"2019",d2:"Études et recherche",m1:170},{d1:"2020",d2:"Études et recherche",m1:130},{d1:"2021",d2:"Études et recherche",m1:230},{d1:"2017",d2:"Gestion, administration des entreprises",m1:6570},{d1:"2018",d2:"Gestion, administration des entreprises",m1:4270},{d1:"2019",d2:"Gestion, administration des entreprises",m1:5330},{d1:"2020",d2:"Gestion, administration des entreprises",m1:5100},{d1:"2021",d2:"Gestion, administration des entreprises",m1:8250},{d1:"2017",d2:"Hôtellerie, restauration, alimentation",m1:4880},{d1:"2018",d2:"Hôtellerie, restauration, alimentation",m1:4640},{d1:"2019",d2:"Hôtellerie, restauration, alimentation",m1:5220},{d1:"2020",d2:"Hôtellerie, restauration, alimentation",m1:3550},{d1:"2021",d2:"Hôtellerie, restauration, alimentation",m1:4950},{d1:"2017",d2:"Industries de process",m1:1580},{d1:"2018",d2:"Industries de process",m1:1160},{d1:"2019",d2:"Industries de process",m1:1290},{d1:"2020",d2:"Industries de process",m1:1430},{d1:"2021",d2:"Industries de process",m1:3210},{d1:"2017",d2:"Informatique et télécommunications",m1:1690},{d1:"2018",d2:"Informatique et télécommunications",m1:1720},{d1:"2019",d2:"Informatique et télécommunications",m1:2090},{d1:"2020",d2:"Informatique et télécommunications",m1:1770},{d1:"2021",d2:"Informatique et télécommunications",m1:3320},{d1:"2017",d2:"Ingénieurs et cadres de l'industrie",m1:410},{d1:"2018",d2:"Ingénieurs et cadres de l'industrie",m1:290},{d1:"2019",d2:"Ingénieurs et cadres de l'industrie",m1:320},{d1:"2020",d2:"Ingénieurs et cadres de l'industrie",m1:370},{d1:"2021",d2:"Ingénieurs et cadres de l'industrie",m1:470},{d1:"2017",d2:"Maintenance",m1:1810},{d1:"2018",d2:"Maintenance",m1:1270},{d1:"2019",d2:"Maintenance",m1:1520},{d1:"2020",d2:"Maintenance",m1:1690},{d1:"2021",d2:"Maintenance",m1:2770},{d1:"2017",d2:"Matériaux souples, bois, industries graphiques",m1:1200},{d1:"2018",d2:"Matériaux souples, bois, industries graphiques",m1:1350},{d1:"2019",d2:"Matériaux souples, bois, industries graphiques",m1:1480},{d1:"2020",d2:"Matériaux souples, bois, industries graphiques",m1:1220},{d1:"2021",d2:"Matériaux souples, bois, industries graphiques",m1:1810},{d1:"2017",d2:"Mécanique, travail des métaux",m1:1500},{d1:"2018",d2:"Mécanique, travail des métaux",m1:1420},{d1:"2019",d2:"Mécanique, travail des métaux",m1:1630},{d1:"2020",d2:"Mécanique, travail des métaux",m1:1380},{d1:"2021",d2:"Mécanique, travail des métaux",m1:1690},{d1:"2017",d2:"Santé, action sociale, culturelle et sportive",m1:10590},{d1:"2018",d2:"Santé, action sociale, culturelle et sportive",m1:8690},{d1:"2019",d2:"Santé, action sociale, culturelle et sportive",m1:8670},{d1:"2020",d2:"Santé, action sociale, culturelle et sportive",m1:8020},{d1:"2021",d2:"Santé, action sociale, culturelle et sportive",m1:9350},{d1:"2017",d2:"Services aux particuliers et aux collectivités",m1:5280},{d1:"2018",d2:"Services aux particuliers et aux collectivités",m1:4520},{d1:"2019",d2:"Services aux particuliers et aux collectivités",m1:6190},{d1:"2020",d2:"Services aux particuliers et aux collectivités",m1:5900},{d1:"2021",d2:"Services aux particuliers et aux collectivités",m1:8740},{d1:"2017",d2:"Transports, logistique et tourisme",m1:7750},{d1:"2018",d2:"Transports, logistique et tourisme",m1:6650},{d1:"2019",d2:"Transports, logistique et tourisme",m1:8190},{d1:"2020",d2:"Transports, logistique et tourisme",m1:9160},{d1:"2021",d2:"Transports, logistique et tourisme",m1:19190},]
};
function UpdateFSIcon(){
var titfs_href = document.getElementById("fshref_n4v");
document.addEventListener("fullscreenchange", function( event ) {
if ( !document.fullscreen ){
document.getElementById("n4v_fs_button").style.backgroundImage="url(https://graphebo.via-competences.fr/N4VCustomElements/res/css/images/n4v_fullscreen.svg)";
titfs_href.title= "Vue plein écran";
}
else {
document.getElementById("n4v_fs_button").style.backgroundImage="url(https://graphebo.via-competences.fr/N4VCustomElements/res/css/images/n4v_minscreen.svg)";
titfs_href.title= "Quitter plein écran";
}
});
}
//setWebiLinked(document);
$(function () {
Dessin_graph();
});
function Dessin_graph(){
var per_init = 0;
var mydata = [];
var flags=[];
var periodes=['2017','2018','2019','2020','2021',];
mydata["2017"] = [["Santé, action sociale, culturelle et sportive",10590],["Transports, logistique et tourisme",7750],["Gestion, administration des entreprises",6570],["Services aux particuliers et aux collectivités",5280],["Hôtellerie, restauration, alimentation",4880],["Bâtiment, travaux publics",3480],["Commerce",2820],["Agriculture, marine, pêche",1810],["Maintenance",1810],["Communication, information, art et spectacle",1780],["Informatique et télécommunications",1690],["Industries de process",1580],["Mécanique, travail des métaux",1500],["Matériaux souples, bois, industries graphiques",1200],["Enseignement, formation",1170],["Administration publique, professions juridiques, armée et police",910],["Ingénieurs et cadres de l'industrie",410],["Banque et assurances",220],["Études et recherche",190],["Artisanat",160],["Électricité, électronique",160],];
mydata["2018"] = [["Santé, action sociale, culturelle et sportive",8690],["Transports, logistique et tourisme",6650],["Hôtellerie, restauration, alimentation",4640],["Services aux particuliers et aux collectivités",4520],["Gestion, administration des entreprises",4270],["Commerce",2280],["Bâtiment, travaux publics",2230],["Informatique et télécommunications",1720],["Agriculture, marine, pêche",1590],["Mécanique, travail des métaux",1420],["Communication, information, art et spectacle",1370],["Matériaux souples, bois, industries graphiques",1350],["Maintenance",1270],["Industries de process",1160],["Administration publique, professions juridiques, armée et police",970],["Enseignement, formation",960],["Ingénieurs et cadres de l'industrie",290],["Banque et assurances",220],["Études et recherche",160],["Artisanat",150],["Électricité, électronique",110],];
mydata["2019"] = [["Santé, action sociale, culturelle et sportive",8670],["Transports, logistique et tourisme",8190],["Services aux particuliers et aux collectivités",6190],["Gestion, administration des entreprises",5330],["Hôtellerie, restauration, alimentation",5220],["Bâtiment, travaux publics",2910],["Commerce",2450],["Informatique et télécommunications",2090],["Agriculture, marine, pêche",1780],["Communication, information, art et spectacle",1630],["Mécanique, travail des métaux",1630],["Maintenance",1520],["Matériaux souples, bois, industries graphiques",1480],["Industries de process",1290],["Administration publique, professions juridiques, armée et police",1160],["Enseignement, formation",1000],["Banque et assurances",460],["Ingénieurs et cadres de l'industrie",320],["Artisanat",180],["Études et recherche",170],["Électricité, électronique",90],];
mydata["2020"] = [["Transports, logistique et tourisme",9160],["Santé, action sociale, culturelle et sportive",8020],["Services aux particuliers et aux collectivités",5900],["Gestion, administration des entreprises",5100],["Hôtellerie, restauration, alimentation",3550],["Bâtiment, travaux publics",2890],["Commerce",2510],["Informatique et télécommunications",1770],["Agriculture, marine, pêche",1690],["Maintenance",1690],["Communication, information, art et spectacle",1470],["Industries de process",1430],["Administration publique, professions juridiques, armée et police",1420],["Mécanique, travail des métaux",1380],["Matériaux souples, bois, industries graphiques",1220],["Enseignement, formation",850],["Ingénieurs et cadres de l'industrie",370],["Banque et assurances",300],["Artisanat",180],["Études et recherche",130],["Électricité, électronique",110],];
mydata["2021"] = [["Transports, logistique et tourisme",19190],["Santé, action sociale, culturelle et sportive",9350],["Services aux particuliers et aux collectivités",8740],["Gestion, administration des entreprises",8250],["Hôtellerie, restauration, alimentation",4950],["Bâtiment, travaux publics",4330],["Communication, information, art et spectacle",3510],["Informatique et télécommunications",3320],["Commerce",3290],["Industries de process",3210],["Maintenance",2770],["Agriculture, marine, pêche",2650],["Administration publique, professions juridiques, armée et police",2490],["Matériaux souples, bois, industries graphiques",1810],["Mécanique, travail des métaux",1690],["Enseignement, formation",1160],["Banque et assurances",680],["Ingénieurs et cadres de l'industrie",470],["Études et recherche",230],["Artisanat",210],["Électricité, électronique",110],];
var icons=[];
function getData(period) {
var initialData = mydata[period];
let output = initialData.map( (x) => x);
return output;
}
Highcharts.AST.allowedReferences.push("javascript:");
Highcharts.setOptions({
lang: {
thousandsSep: " ",
decimalPoint: ".",
accessibility:{
chartContainerLabel: "{title}",
svgContainerLabel: "{title}",
},
},
colors : ["#491547","#985092","#D1BCDC","#005E5E","#00A6A5","#B2DDDF","#FCD12D","#F9B524",]
});
var chart = Highcharts.chart("container", {
chart: {
animation: {duration: 900},
marginRight: 50,
backgroundColor: "#ffffff",
style: {
"fontFamily": "Lucida Sans Unicode",
"fontSize": "15px"
},
},
title: {
text: "",
style:{ color: "#000000",
fontFamily: "arial",
fontSize: "12px",
fontWeight: "normal",
textDecoration: "none",
fontStyle: "normal" },
widthAdjust: -44,
align: "center"
},
subtitle: {
text: "",
style:{ color: "#848284",
fontFamily: "arial",
fontSize: "10px",
fontWeight: "normal",
textDecoration: "none",
fontStyle: "normal" },
widthAdjust: -44,
align: "center"
},
xAxis: {
type: "category",
gridLineWidth: 0,
gridLineColor : "#e6e6e6",
lineWidth: 1,
lineColor : "#e6e6e6",
max: 20,
title: {text:"",
useHTML: true,
style:{ color: "#848284",
fontFamily: "arial",
fontSize: "12px",
fontWeight: "normal",
textDecoration: "none",
fontStyle: "normal" }
},
labels: {
useHTML: true,
animate: true,
enabled : true,
formatter: ctx => {
return ctx.value; },
style: {
textAlign: "center"
},
style: {color: "#848284",
fontFamily: "arial",
fontSize: "12px",
fontWeight: "normal",
textDecoration: "none",
fontStyle: "normal" }
}
},
yAxis: {
labels: {
style: {color: "#848284ff",
fontFamily: "arial",
fontSize: "12px",
fontWeight: "normal",
fontStyle: "normal" },
enabled : true
},
opposite: false,
endOnTick: true,
gridLineWidth: 1,
gridLineColor : "#e6e6e6",
lineWidth: 1,
lineColor : "#e6e6e6",
title: {text:"",
useHTML: true,
style:{ color: "#848284ff",
fontFamily: "arial",
fontSize: "12px",
fontWeight: "normal",
textDecoration: "none",
fontStyle: "normal" }
},
},
legend: {
align: "right",
verticalAlign: "bottom",
itemStyle: {color: "#848284",
fontFamily: "arial",
fontWeight: "bold",
fontSize: "20px",
textDecoration: "none",
fontStyle: "normal"
},
symbolHeight: 0.001,
symbolWidth: 0.001,
symbolRadius: 0.001,
},
plotOptions: {
series: {
animation: false,
events: {
legendItemClick: function(e) {
e.preventDefault();
}
},
groupPadding: 0,
pointPadding: 0.1,
borderWidth: 0,
borderRadius: 0,
},
},
tooltip: {
headerFormat: '{series.name}
',
pointFormat: '
{point.name}
\u25CF Nombre de sortants : {point.y}
',
borderWidth: 1,
valueDecimals: 0,
valuePrefix: '',
valueSuffix: ''
},
series: [{
colorByPoint: true,
dataSorting: {
enabled: true,
matchByName: true
},
type: "bar",
dataLabels: [{
enabled: true,
inside: false,
useHTML: true,
formatter: function () {
return ""+Highcharts.numberFormat(this.point.y,0,"."," ")+""; },
style:{ color: "#848284",
fontFamily: "arial",
fontSize: "11px",
fontWeight: "normal",
textDecoration: "none",
textOutline: "1px contrast",
fontStyle: "normal" }
}],
name: periodes[0],
data: getData(periodes[0])
}],
});
$("#container").append(div_menu_btn);
const btn = document.getElementById("play-pause-button"),
btn_stop = document.getElementById("stop-button"),
bubble = document.getElementById("bubble"),
input = document.getElementById("play-range");
function update(increment) {
bubble.style.display = "none";
if(increment == 0){
per_init=0;
pause(btn);
input.value=0;
}else if(increment == 1){
per_init++
if (per_init < periodes.length){
input.value = per_init;
}else{
update(0);
play(btn);
}
}
else{
per_init = input.value;
}
if (per_init < periodes.length){
chart.series[0].update({
name: periodes[per_init],
data: getData(periodes[per_init])
});
}
}
function play(button) {
button.title = "pause";
button.className = "pause_button";
chart.sequenceTimer = setInterval(function() {
update(1);
}, 1000);
}
function pause(button) {
button.title = "play";
button.className = "play_button";
clearTimeout(chart.sequenceTimer);
chart.sequenceTimer = undefined;
}
var el, newPoint, newPlace, offset;
$("input[type=range]").on("input", function () {
$(this).trigger("change");
});
$("input[type=range]").change(function() {
bubble.style.display = "inline-block";
el = $(this);
width = el.width();
newPoint = (el.val() - el.attr("min")) / (el.attr("max") - el.attr("min"));
offset = -1;
if (newPoint < 0) { newPlace = 0; }
else if (newPoint > 1) { newPlace = width; }
else { newPlace = width * newPoint + offset; offset -= newPoint; }
el
.next("output")
.css({
left: newPlace,
marginLeft: offset + "%"
})
.text(periodes[el.val()]);
})
btn.addEventListener("click", function() {
if (chart.sequenceTimer) {
pause(this)
} else {
play(this)
}
})
btn_stop.addEventListener("click", function() {
update(0);
})
input.addEventListener("click", function() {
pause(btn);
update(2)
})
$("#container").append(div_menu_n4v);
UpdateFSIcon();
play(btn);
}