mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add. Make legend outside of graphic of CDR Statistic. (#2760)
This commit is contained in:
committed by
FusionPBX
parent
7fb58a16e8
commit
b820d07f12
@@ -86,6 +86,11 @@ else {
|
||||
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/flot/jquery.flot.time.js"></script>
|
||||
<div align='center'>
|
||||
<table>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<div id="placeholder-legend" style="padding:2px;margin-bottom: 8px;border-radius: 3px 3px 3px 3px;border: 1px solid #E6E6E6;display: inline-block;margin: 0 auto;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<div id="placeholder" style="width:700px;height:180px;"></div>
|
||||
@@ -155,6 +160,12 @@ else {
|
||||
|
||||
if (data.length > 0)
|
||||
$.plot($("#placeholder"), data, {
|
||||
legend:{
|
||||
show: true,
|
||||
noColumns: 10,
|
||||
container: $("#placeholder-legend"),
|
||||
placement: 'outsideGrid',
|
||||
},
|
||||
yaxis: { min: 0 },
|
||||
<?php
|
||||
if ($hours <= 48) {
|
||||
|
||||
Reference in New Issue
Block a user