<strong><?=sprintf(gettext('The following summaries have been collected from the last %s lines of the firewall log (maximum is %s).'),$gotlines,$lines)?></strong>
<strong><?=sprintf(gettext('The following summaries have been collected from the last %s lines of the firewall log (maximum is %s).'),$gotlines,$lines)?></strong>
<ahref="diag_dns.php?host=<?=$data[$field][$row]["label"]?>"title="<?=gettext("Reverse Resolve with DNS");?>"><spanclass="glyphicon glyphicon-search"></span></a>
<?phpendif?>
<?=$data[$field][$row]["label"]?></td>
<td><?=$data[$field][$row]["value"]?></td>
</tr>
<?phpendforeach?>
<?phpendif;?>
</table>
</div>
</div>
<?phpendforeach?>
</section>
</div>
</div>
</section>
<script type="text/javascript">
// Generate Donut charts
nv.addGraph(function(){
// Find all piechart classes to insert the chart
$('div[class="piechart"]').each(function(){
varselected_id=$(this).prop("id");
varchart=nv.models.pieChart()
.x(function(d){returnd.label})
.y(function(d){returnd.value})
.showLabels(true)//Display pie labels
.labelThreshold(.05)//Configure the minimum slice size for labels to show up
.labelType("percent")//Configure what type of data to show in the label. Can be "key", "value" or "percent"
.donut(true)//Turn on Donut mode. Makes pie chart look tasty!
.donutRatio(0.2)//Configure how big you want the donut hole size to be.