Commit 030b3588 authored by Romain Loth's avatar Romain Loth

directory: piecharts with constant diameter + fix html entities display

parent ce88de35
...@@ -59,9 +59,9 @@ foreach ($scholars as $row) { ...@@ -59,9 +59,9 @@ foreach ($scholars as $row) {
// TODO supprimer, l'essentiel est fait/à faire en amont à l'enregistrement // TODO supprimer, l'essentiel est fait/à faire en amont à l'enregistrement
$position = strtolower(trim($row["position"])); $position = strtolower(trim($row["position"]));
if (strcmp($position, "prof.") == 0) { if (strcmp($position, "prof.") == 0) {
$position = ""; $position = "professor";
} elseif (strcmp($position, "prof") == 0) { } elseif (strcmp($position, "prof") == 0) {
$position = ""; $position = "professor";
} elseif (strcmp($position, "ph.d. student") == 0) { } elseif (strcmp($position, "ph.d. student") == 0) {
$position = "phd student"; $position = "phd student";
} elseif (strcmp($position, "directeur de recherche") == 0) { } elseif (strcmp($position, "directeur de recherche") == 0) {
...@@ -328,6 +328,7 @@ $(document).ready(function() { ...@@ -328,6 +328,7 @@ $(document).ready(function() {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: "pointer", cursor: "pointer",
size: "75%",
dataLabels: { dataLabels: {
enabled: true, enabled: true,
color: "#000000", color: "#000000",
...@@ -335,7 +336,8 @@ $(document).ready(function() { ...@@ -335,7 +336,8 @@ $(document).ready(function() {
formatter: function() { formatter: function() {
return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %"; return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %";
} }
} },
useHTML: true
} }
}, },
series: [{ series: [{
...@@ -365,6 +367,7 @@ $(document).ready(function() { ...@@ -365,6 +367,7 @@ $(document).ready(function() {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: "pointer", cursor: "pointer",
size: "75%",
dataLabels: { dataLabels: {
enabled: true, enabled: true,
color: "#000000", color: "#000000",
...@@ -372,7 +375,8 @@ $(document).ready(function() { ...@@ -372,7 +375,8 @@ $(document).ready(function() {
formatter: function() { formatter: function() {
return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %"; return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %";
} }
} },
useHTML: true
} }
}, },
series: [{ series: [{
...@@ -401,6 +405,7 @@ $(document).ready(function() { ...@@ -401,6 +405,7 @@ $(document).ready(function() {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: "pointer", cursor: "pointer",
size: "75%",
dataLabels: { dataLabels: {
enabled: true, enabled: true,
color: "#000000", color: "#000000",
...@@ -408,7 +413,8 @@ $(document).ready(function() { ...@@ -408,7 +413,8 @@ $(document).ready(function() {
formatter: function() { formatter: function() {
return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %"; return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %";
} }
} },
useHTML: true
} }
}, },
series: [{ series: [{
...@@ -445,6 +451,7 @@ $(document).ready(function() { ...@@ -445,6 +451,7 @@ $(document).ready(function() {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: "pointer", cursor: "pointer",
size: "75%",
dataLabels: { dataLabels: {
enabled: true, enabled: true,
color: "#000000", color: "#000000",
...@@ -452,7 +459,8 @@ $(document).ready(function() { ...@@ -452,7 +459,8 @@ $(document).ready(function() {
formatter: function() { formatter: function() {
return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %"; return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %";
} }
} },
useHTML: true
} }
}, },
series: [{ series: [{
...@@ -491,13 +499,15 @@ $(document).ready(function() { ...@@ -491,13 +499,15 @@ $(document).ready(function() {
pie: { pie: {
allowPointSelect: true, allowPointSelect: true,
cursor: "pointer", cursor: "pointer",
size: "75%",
dataLabels: { dataLabels: {
enabled: true, enabled: true,
color: "#000000", color: "#000000",
connectorColor: "#000000", connectorColor: "#000000",
formatter: function() { formatter: function() {
return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %"; return "<b>"+ this.point.name +"</b>: "+ Math.floor(10*this.percentage)/10 +" %";
} },
useHTML: true
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment