Commit 4b4cbe5d authored by Chancellier Pierre-Jean's avatar Chancellier Pierre-Jean
Browse files

Amélioration de l'apparence du graph

parent 122a9393
......@@ -238,19 +238,20 @@
container.appendChild(div);
var chartData = {
datasets: [{
label: "<?php echo tr('graph_target'); ?>",
data: <?php echo json_encode($array_line); ?>,
borderColor: '#FF3E3D',
borderDash: [5, 5],
radius: 0,
fill: false
},{
label: '<?php echo tr('graph_title'); ?>',
data: <?php echo json_encode($array_final); ?>,
borderColor: '#0099FF',
fill: false,
backgroundColor: '#80CCFF',
lineTension: 0,
pointRadius: 1,
borderWidth: 2
},{
label: "<?php echo tr('graph_target'); ?>",
data: <?php echo json_encode($array_line); ?>,
borderColor: 'rgb(255, 99, 132)',
radius: 0,
fill: false
}]
};
new Chart(canvas.getContext('2d'), {
......@@ -269,7 +270,6 @@
xAxes: [{
type: 'time',
time: {
// TODO : A personnaliser avec la langue ?
tooltipFormat: dateFormat
}
}]
......
Supports Markdown
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