1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| <PieChart
:src="$sources.AsaStatut"
:options="{
title: {
$text: function(dataset) {
return dataset.sumBy('asaNombre').value() + '\n{sub|Total}'
},
x: 'center',
y: 'center',
textStyle: {
fontSize: 32,
color: '#444',
fontFamily: 'SourceSansProRegular, roboto, sans-serif',
lineHeight: 24,
rich: {
sub: {
color: '#D5D6D8',
fontSize: 16
}
}
},
itemStyle: {
}
},
legend: {
data: [
'Task En cours',
'Task Validé'
],
bottom: 0,
selected: {
'Key not in scope': false
}
},
series: [
{
$data: { value: 'asaNombre', name: 'Statut' },
radius: ['55%', '70%'],
color: [ '#DA353B','#19B772'],
label: {
normal: {
show: false
}
}
}
]
}"
/> |
Partager