2016-04-19 15:08:59 +00:00
|
|
|
/* [0] Chemins des fichiers de gestion des graphiques
|
|
|
|
=========================================================*/
|
|
|
|
var chartManagers = {
|
|
|
|
sociogram: '/js/includes/sociogram-min.js'
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-15 10:10:38 +00:00
|
|
|
/* [1] Gestion du sociogramme
|
|
|
|
=========================================================*/
|
2016-04-18 12:56:49 +00:00
|
|
|
var sociogram;
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
/* (1) On essaie de charger la classe du sociogramme */
|
2016-04-19 15:08:59 +00:00
|
|
|
var alreadyLoaded = include(chartManagers.sociogram, null, true);
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
/* (2) Si il est pas déja chargé, on initialise le sociogramme */
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-19 15:08:59 +00:00
|
|
|
include(chartManagers.sociogram, function(){
|
2016-04-18 12:56:49 +00:00
|
|
|
// On ajoute les méthodes si c'est la première fois qu'on charge
|
|
|
|
if( !alreadyLoaded ) sociogramClass.prototype.overloadGraph();
|
2016-04-15 16:40:15 +00:00
|
|
|
|
2016-04-18 12:56:49 +00:00
|
|
|
// On charge le graphique
|
|
|
|
sociogram = new sociogramClass(document.getElementById('sociogram'));
|
|
|
|
sociogram.load();
|
2016-04-15 10:10:38 +00:00
|
|
|
|
2016-04-15 13:07:25 +00:00
|
|
|
});
|