tweaking the traffic-graphs
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
21
templates/Sparkle/assets/js/traffic.js
vendored
21
templates/Sparkle/assets/js/traffic.js
vendored
@@ -60,37 +60,50 @@ $(document).ready(function(){
|
|||||||
//alert(ftp);
|
//alert(ftp);
|
||||||
var plot2 = $.jqplot('chartdiv', [ftp, http, mail], {
|
var plot2 = $.jqplot('chartdiv', [ftp, http, mail], {
|
||||||
series: [
|
series: [
|
||||||
|
|
||||||
{
|
{
|
||||||
lineWidth:1,
|
lineWidth:1,
|
||||||
color: '#019522',
|
color: '#019522',
|
||||||
label: 'FTP',
|
label: 'FTP',
|
||||||
showMarker: false
|
markerOptions: { style:"circle", size: 5, shadow: false },
|
||||||
|
rendererOptions: { smooth: true },
|
||||||
|
pointLabels: { show:true, formatString: "%#.2f" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
lineWidth:1,
|
lineWidth:1,
|
||||||
color: '#0000FF',
|
color: '#0000FF',
|
||||||
label: 'HTTP',
|
label: 'HTTP',
|
||||||
showMarker: false
|
markerOptions: { style:"circle", size: 5, shadow: false },
|
||||||
|
rendererOptions: { smooth: true },
|
||||||
|
pointLabels: { show:true, formatString: "%#.2f" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
lineWidth:1,
|
lineWidth:1,
|
||||||
color: '#800000',
|
color: '#800000',
|
||||||
label: 'Mail',
|
label: 'Mail',
|
||||||
showMarker: false
|
markerOptions: { style: "circle", size: 5, shadow: false },
|
||||||
|
rendererOptions: { smooth: true },
|
||||||
|
pointLabels: { show:true, formatString: "%#.2f" }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
axes: {
|
axes: {
|
||||||
yaxis: {
|
yaxis: {
|
||||||
min: 0,
|
min: 0,
|
||||||
numberTicks: 10
|
numberTicks: 5,
|
||||||
|
rendererOptions: {drawBaseline: false}
|
||||||
},
|
},
|
||||||
xaxis: {
|
xaxis: {
|
||||||
|
tickOptions:{
|
||||||
|
showGridline: false
|
||||||
|
},
|
||||||
pad: 0,
|
pad: 0,
|
||||||
ticks: aticks
|
ticks: aticks
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
|
show: false,
|
||||||
background: '#fff',
|
background: '#fff',
|
||||||
|
gridLineColor: '#e2e4e6',
|
||||||
borderWidth: 0,
|
borderWidth: 0,
|
||||||
shadow: false
|
shadow: false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user