fix graph list
This commit is contained in:
parent
aae37c6ce0
commit
cc6c991090
2 changed files with 3 additions and 3 deletions
|
@ -175,7 +175,7 @@
|
|||
const series = {{ series|json_encode|raw }};
|
||||
const followupIcons = {{ followup_icons|json_encode|raw }};
|
||||
const typeLabels = Object.assign({}, {{ followup_labels|json_encode|raw }});
|
||||
const ctcCompletionSeries = {% if ctc_completion_series is defined %}{{ ctc_completion_series|json_encode|raw }} {% endif %} | [];
|
||||
const ctcCompletionSeries = {% if ctc_completion_series is defined %}{{ ctc_completion_series|json_encode|raw }} {% else %} []{% endif %};
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
Object.keys(typeLabels).forEach(function(baseType) {
|
||||
const countData = (series[baseType + '_count'] || []).map(pt => ({ x: pt.date, y: pt.value }));
|
||||
|
|
|
@ -481,8 +481,8 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
|
||||
|
||||
<script>
|
||||
const countData = {{ count_data|raw }};
|
||||
const completionData = {{ completion_data|raw }};
|
||||
const countData = {{ count_data|json_encode|raw }};
|
||||
const completionData = {{ completion_data|json_encode|raw }};
|
||||
|
||||
// Mettre à jour les statistiques
|
||||
function updateStats() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue