Add. Make legend outside of graphic of CDR Statistic. (#2760)
This commit is contained in:
committed by
FusionPBX
parent
01e19d4de2
commit
76413de3f8
@@ -86,6 +86,11 @@ else {
|
|||||||
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/flot/jquery.flot.time.js"></script>
|
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/flot/jquery.flot.time.js"></script>
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<table>
|
<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>
|
<tr>
|
||||||
<td align='left'>
|
<td align='left'>
|
||||||
<div id="placeholder" style="width:700px;height:180px;"></div>
|
<div id="placeholder" style="width:700px;height:180px;"></div>
|
||||||
@@ -155,6 +160,12 @@ else {
|
|||||||
|
|
||||||
if (data.length > 0)
|
if (data.length > 0)
|
||||||
$.plot($("#placeholder"), data, {
|
$.plot($("#placeholder"), data, {
|
||||||
|
legend:{
|
||||||
|
show: true,
|
||||||
|
noColumns: 10,
|
||||||
|
container: $("#placeholder-legend"),
|
||||||
|
placement: 'outsideGrid',
|
||||||
|
},
|
||||||
yaxis: { min: 0 },
|
yaxis: { min: 0 },
|
||||||
<?php
|
<?php
|
||||||
if ($hours <= 48) {
|
if ($hours <= 48) {
|
||||||
|
|||||||
Reference in New Issue
Block a user