Add dashed lines to graph

This commit is contained in:
Alex Kilgour
2016-02-01 17:14:21 +00:00
parent ed1b9830fd
commit 816eecb256
4 changed files with 256 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ $(document).ready(function(){
var graphOptions = {
series: {
dashes: { show: false, lineWidth: 3 },
lines: { show: true },
points: { show: true },
hoverable: true
@@ -43,6 +44,11 @@ $(document).ready(function(){
lines: {
lineWidth: 3
},
points: {
fill: true,
fillColor: "rgb(255, 255, 255)"
},
shadowSize: 0,
grid: {
backgroundColor: '#fff',
borderColor: '#808080',
@@ -168,9 +174,25 @@ $(document).ready(function(){
function getData() {
return [
{ color: 'rgb(216, 61, 45)', label: 'Errors', data: data.error },
{ color: 'rgb(168, 103, 0)', label: 'Warnings', data: data.warning },
{ color: 'rgb(23, 123, 190)', label: 'Notices', data: data.notice }
{
color: 'rgb(216, 61, 45)',
label: 'Errors',
data: data.error
},
{
color: 'rgb(168, 103, 0)',
label: 'Warnings',
data: data.warning,
lines: { show: false },
dashes: { show: true }
},
{
color: 'rgb(23, 123, 190)',
label: 'Notices',
data: data.notice,
lines: { show: false },
dashes: { show: true, dashLength: 5 }
}
];
}