Add color to graphe

This commit is contained in:
guimoz 2017-01-30 09:37:54 +01:00
parent 815d7abe21
commit 177752a6f2
6 changed files with 56 additions and 14 deletions

View file

@ -53,11 +53,18 @@ $(function () {
}, },
series: [{ series: [{
type: 'pie', type: 'pie',
name: 'Etat du Rezo', name: 'Pourcentage',
innerSize: '50%', innerSize: '50%',
data: [ data: [
['Tranchés', {{ stats[0] }}], {
['Vivants', {{ stats[1] }}] name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
] ]
}] }]
}); });

View file

@ -54,11 +54,18 @@ $(function () {
}, },
series: [{ series: [{
type: 'pie', type: 'pie',
name: 'Etat du Rezo', name: 'Pourcentage',
innerSize: '50%', innerSize: '50%',
data: [ data: [
['Tranchés', {{ stats[0] }}], {
['Vivants', {{ stats[1] }}] name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
] ]
}] }]
}); });

View file

@ -57,8 +57,15 @@
name: 'Etat du Rezo', name: 'Etat du Rezo',
innerSize: '50%', innerSize: '50%',
data: [ data: [
['Tranchés', {{ stats[0] }}], {
['Vivants', {{ stats[1] }}] name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
] ]
}] }]
}); });

View file

@ -43,8 +43,15 @@ $(function () {
name: 'Etat du Rezo', name: 'Etat du Rezo',
innerSize: '50%', innerSize: '50%',
data: [ data: [
['Tranchés', {{ stats[0] }}], {
['Vivants', {{ stats[1] }}] name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
] ]
}] }]
}); });

View file

@ -56,8 +56,15 @@ $(function () {
name: 'Etat du Rezo', name: 'Etat du Rezo',
innerSize: '50%', innerSize: '50%',
data: [ data: [
['Tranchés', {{ stats[0] }}], {
['Vivants', {{ stats[1] }}] name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
] ]
}] }]
}); });

View file

@ -41,8 +41,15 @@ $(function () {
name: 'Etat du Rezo', name: 'Etat du Rezo',
innerSize: '50%', innerSize: '50%',
data: [ data: [
['Tranchés', {{ stats[0] }}], {
['Vivants', {{ stats[1] }}] name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
] ]
}] }]
}); });