Add. Make legend outside of graphic of CDR Statistic. (#2760)
This commit is contained in:
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>
|
||||
<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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue