Update recent_calls.php (#6121)

This commit is contained in:
AlexC 2021-11-12 12:55:51 -07:00 committed by GitHub
parent d24aa11b99
commit fd3f3c2d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 41 deletions

View File

@ -74,19 +74,18 @@
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
echo "
<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom:10px;'>
//add doughnut chart
?>
<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 10px;'>
<div style='width: 175px; height: 175px;'><canvas id='recent_calls_chart'></canvas></div>
</div>
<script>
var recent_calls_bgc = ['#2a9df4', '#d4d4d4'];
const recent_calls_data = {
datasets: [{
data:[".$num_rows.", 0.00001],
data: ['<?php echo $num_rows; ?>', 0.00001],
borderColor: 'rgba(0,0,0,0)',
backgroundColor: [recent_calls_bgc[0], recent_calls_bgc[1]],
backgroundColor: ['#2a9df4', '#d4d4d4'],
cutout: chart_cutout
}]
};
@ -99,14 +98,14 @@
maintainAspectRatio: false,
plugins: {
chart_counter: {
chart_text: ".$num_rows."
chart_text: '<?php echo $num_rows; ?>'
},
legend: {
display: false
},
title: {
display: true,
text: '".$text['label-recent_calls']."'
text: '<?php echo $text['label-recent_calls']; ?>'
}
}
},
@ -118,7 +117,7 @@
recent_calls_config
);
</script>
";
<?php
echo "<div class='hud_details hud_box' id='hud_recent_calls_details'>";
echo "<table class='tr_hover' width='100%' cellpadding='0' cellspacing='0' border='0'>\n";