@ -112,19 +120,17 @@ for (i= 0; i < color_loops; i++) {
return color; //missing colors
}
/*
gray tones for all skills that have no particular property ("Basic skills wheel" view)
yellow tones for skills that are provided by courses in Chamilo ("Teachable skills" view)
bright blue tones for personal skills already acquired by the student currently looking at the weel ("My skills" view)
dark blue tones for skills already acquired by a series of students, when looking at the will in the "Owned skills" view.
bright green for skills looked for by a HR director ("Profile search" view)
dark green for skills most searched for, summed up from the different saved searches from HR directors ("Most wanted skills")
bright red for missing skills, in the "Required skills" view for a student when looking at the "Most wanted skills" (or later, when we will have developed that, for the "Matching position" view)
*/
/*
gray tones for all skills that have no particular property ("Basic skills wheel" view)
yellow tones for skills that are provided by courses in Chamilo ("Teachable skills" view)
bright blue tones for personal skills already acquired by the student currently looking at the weel ("My skills" view)
dark blue tones for skills already acquired by a series of students, when looking at the will in the "Owned skills" view.
bright green for skills looked for by a HR director ("Profile search" view)
dark green for skills most searched for, summed up from the different saved searches from HR directors ("Most wanted skills")
bright red for missing skills, in the "Required skills" view for a student when looking at the "Most wanted skills" (or later, when we will have developed that, for the "Matching position" view)
*/
/* Manage the partition colors */
function set_skill_style(d, attribute, searched_skill_id) {
//Default stroke
return_stroke = 'black';
@ -136,21 +142,21 @@ bright red for missing skills, in the "Required skills" view for a student when
var p = color_patterns[18];
color = p(depth -1 + d.counter);
return_fill = d.color = color;
//return_fill = 'grey';
//If user achieved that skill
//blue - if user achieved that skill
if (d.achieved) {
return_fill = '#3A87AD';
//return_stroke = '#FCD23A';
}
//darkblue
//If the skill has a gradebook attached
//yellow - If the skill has a gradebook attached
if (d.skill_has_gradebook) {
return_fill = '#F89406';
//return_stroke = 'grey';
}
//console.log(d.id +' - ' + searched_skill_id);
//red - if to show the searched skill
if (searched_skill_id) {
if (d.id == searched_skill_id) {
return_fill = '#B94A48';
@ -159,7 +165,7 @@ bright red for missing skills, in the "Required skills" view for a student when
switch (attribute) {
case 'fill':
//In order to the text could identify the background
//In order to identify the color of the text (white, black) used in other function
d.color = return_fill;
return return_fill;
break;
@ -169,11 +175,19 @@ bright red for missing skills, in the "Required skills" view for a student when
}
}
/* When you click a skill partition */
function click_partition(d, path, text, icon, arc, x, y, r, p) {
if (d.depth == 2) {
/*main_depth +=1;
load_nodes(main_depth);*/
}
/* "No id" means that we reach the center of the wheel go to the root*/
if (!d.id) {
load_nodes(0, main_depth);
}
//Duration of the transition
var duration = 1000;
path.transition()
@ -207,8 +221,9 @@ bright red for missing skills, in the "Required skills" view for a student when