mirror of https://github.com/MISP/misp-dashboard
switched lineChart to show category overtime
parent
3a579b7329
commit
939d1783df
|
@ -177,13 +177,13 @@ function updateLogTable(feedName, log) {
|
||||||
|
|
||||||
// Create new row
|
// Create new row
|
||||||
tableBody = document.getElementById('table_log_body');
|
tableBody = document.getElementById('table_log_body');
|
||||||
//curNumLog++;
|
|
||||||
sources.addIfNotPresent(feedName);
|
|
||||||
sources.incCountOnSource(feedName);
|
|
||||||
sources.incCountOnSource('global');
|
|
||||||
|
|
||||||
// only add row for attribute
|
// only add row for attribute
|
||||||
if (feedName == "Attribute" ) {
|
if (feedName == "Attribute" ) {
|
||||||
|
var categName = log[2];
|
||||||
|
sources.addIfNotPresent(categName);
|
||||||
|
sources.incCountOnSource(categName);
|
||||||
|
sources.incCountOnSource('global');
|
||||||
createRow(tableBody, log);
|
createRow(tableBody, log);
|
||||||
|
|
||||||
// Remove old row
|
// Remove old row
|
||||||
|
|
|
@ -149,7 +149,7 @@ small {
|
||||||
<!-- /.panel -->
|
<!-- /.panel -->
|
||||||
<div id="panelLineChart" class="panel panel-default" style="margin-top: 15px; height: {{ pannelSize[1] }}vh;">
|
<div id="panelLineChart" class="panel panel-default" style="margin-top: 15px; height: {{ pannelSize[1] }}vh;">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-bar-chart-o fa-fw"></i> Log feed (hours)
|
<i class="fa fa-bar-chart-o fa-fw"></i> Category overtime (hours)
|
||||||
</div>
|
</div>
|
||||||
<div id="panelbody" class="panel-body" style="width:100%; height: 100%;">
|
<div id="panelbody" class="panel-body" style="width:100%; height: 100%;">
|
||||||
<div id="feedDiv3" style="width:100%; height: calc(100% - 46px); position: relative;"></div>
|
<div id="feedDiv3" style="width:100%; height: calc(100% - 46px); position: relative;"></div>
|
||||||
|
|
Loading…
Reference in New Issue