Réparer les scripts intégrés aux vues
This commit is contained in:
parent
63224d8b06
commit
64ce1285aa
12 changed files with 112 additions and 97 deletions
|
|
@ -334,29 +334,28 @@ if (empty($costs['by_clinic'])):?><span class="text-muted"><?= h(t('statistics.n
|
|||
new Chart(canvas, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: < ? = json_encode(array_map('strval', array_keys($timeline)),
|
||||
JSON_UNESCAPED_UNICODE) ? > ,
|
||||
labels: <?= json_encode(array_map('strval', array_keys($timeline)),
|
||||
JSON_UNESCAPED_UNICODE) ?> ,
|
||||
datasets: [{
|
||||
label: < ? = json_encode(t('statistics.handled'), JSON_UNESCAPED_UNICODE) ?
|
||||
> ,
|
||||
data: < ? = json_encode(array_values(array_map(static fn($s) => (int) $s[
|
||||
'handled'], $timeline))) ? > ,
|
||||
label: <?= json_encode(t('statistics.handled'), JSON_UNESCAPED_UNICODE) ?> ,
|
||||
data: <?= json_encode(array_values(array_map(static fn($s) => (int) $s[
|
||||
'handled'], $timeline))) ?> ,
|
||||
borderColor: '#0ca678',
|
||||
backgroundColor: 'rgba(12,166,120,.12)',
|
||||
tension: .3
|
||||
}, {
|
||||
label: < ? = json_encode(t('statistics.adoptions'),
|
||||
JSON_UNESCAPED_UNICODE) ? > ,
|
||||
data: < ? = json_encode(array_values(array_map(static fn($s) => (int) $s[
|
||||
'adoptions'], $timeline))) ? > ,
|
||||
label: <?= json_encode(t('statistics.adoptions'),
|
||||
JSON_UNESCAPED_UNICODE) ?> ,
|
||||
data: <?= json_encode(array_values(array_map(static fn($s) => (int) $s[
|
||||
'adoptions'], $timeline))) ?> ,
|
||||
borderColor: '#206bc4',
|
||||
backgroundColor: 'rgba(32,107,196,.12)',
|
||||
tension: .3
|
||||
}, {
|
||||
label: < ? = json_encode(t('statistics.deaths'), JSON_UNESCAPED_UNICODE) ? >
|
||||
label: <?= json_encode(t('statistics.deaths'), JSON_UNESCAPED_UNICODE) ?>
|
||||
,
|
||||
data: < ? = json_encode(array_values(array_map(static fn($s) => (int) $s[
|
||||
'deaths'], $timeline))) ? > ,
|
||||
data: <?= json_encode(array_values(array_map(static fn($s) => (int) $s[
|
||||
'deaths'], $timeline))) ?> ,
|
||||
borderColor: '#343a40',
|
||||
backgroundColor: 'rgba(52,58,64,.10)',
|
||||
tension: .3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue