mirror of https://github.com/MISP/misp-dashboard
UI: Update lines->fill for linecharts
parent
127c1cef5e
commit
e2fdbefa30
|
@ -25,7 +25,6 @@ var datePickerOptions = {
|
||||||
var lineChartOption = {
|
var lineChartOption = {
|
||||||
lines: {
|
lines: {
|
||||||
show: true,
|
show: true,
|
||||||
fill: true
|
|
||||||
},
|
},
|
||||||
points: { show: true },
|
points: { show: true },
|
||||||
xaxis: {
|
xaxis: {
|
||||||
|
@ -363,6 +362,7 @@ function updateSignthingsChart() {
|
||||||
lineChartOptionSight['legend']['show'] = true;
|
lineChartOptionSight['legend']['show'] = true;
|
||||||
lineChartOptionSight['legend']['position'] = 'nw';
|
lineChartOptionSight['legend']['position'] = 'nw';
|
||||||
lineChartOptionSight['grid'] = {};
|
lineChartOptionSight['grid'] = {};
|
||||||
|
lineChartOptionSight['lines']['fill'] = true;
|
||||||
sightingLineWidget = $.plot("#sightingLine", toPlot, lineChartOptionSight);
|
sightingLineWidget = $.plot("#sightingLine", toPlot, lineChartOptionSight);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -390,6 +390,7 @@ function updateDisc() {
|
||||||
var lineChartOptionDisc = jQuery.extend(true, {}, lineChartOption);
|
var lineChartOptionDisc = jQuery.extend(true, {}, lineChartOption);
|
||||||
lineChartOptionDisc['legend']['show'] = true;
|
lineChartOptionDisc['legend']['show'] = true;
|
||||||
lineChartOptionDisc['legend']['position'] = 'nw';
|
lineChartOptionDisc['legend']['position'] = 'nw';
|
||||||
|
lineChartOptionDisc['lines']['fill'] = true;
|
||||||
$.getJSON( url_getTrendingDisc+"?dateS="+parseInt(dateStart.getTime()/1000)+"&dateE="+parseInt(dateEnd.getTime()/1000), function( data ) {
|
$.getJSON( url_getTrendingDisc+"?dateS="+parseInt(dateStart.getTime()/1000)+"&dateE="+parseInt(dateEnd.getTime()/1000), function( data ) {
|
||||||
updateLine(discLine, data, lineChartOptionDisc);
|
updateLine(discLine, data, lineChartOptionDisc);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue