Add. Make legend outside of graphic of CDR Statistic. (#2760)

This commit is contained in:
Alexey Melnichuk
2017-07-25 23:38:57 +03:00
committed by FusionPBX
parent 7fb58a16e8
commit b820d07f12

View File

@@ -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) {