Former-commit-id: 89fa8e42f2e153e6c9b676d668779718714ac333 [formerly 89fa8e42f2e153e6c9b676d668779718714ac333 [formerly 89fa8e42f2e153e6c9b676d668779718714ac333 [formerly 89fa8e42f2e153e6c9b676d668779718714ac333 [formerly 955c03c4e108cbd8aa597fc947a9454e749d904f [formerly 5d8b1d73e78953d5f8e7fe4302764addfc2af0e8]]]]] Former-commit-id: 002ba25940eac6b1db5af8aa03a75ab43c3eccf3 Former-commit-id: 43f3ff50fc9a0d54bf21479e87da9b72b7fe20c3 Former-commit-id: 32ed9ae714fec2fdd3ba08fb40187e81e837edcb [formerly f34f58804fd798c1e271250f06f245b83f5e7c3e] Former-commit-id: 17640172e9d4f7b75dc2410e2faa6a93a90e09ac Former-commit-id: 521e6c1695e24e315d368d27db8f8232fbe30999 Former-commit-id: 3dd3d0a15ab7c64f29148a25fc8c4a0a5eb77497 Former-commit-id: 0753ae560b4ec27771a5b052f73a0a94436f9e0f Former-commit-id: 9a6f11a43fab5a79df9ab9527453c0f66ad7888d
104 lines
1.8 KiB
JavaScript
104 lines
1.8 KiB
JavaScript
/**
|
|
* Grid theme for Highcharts JS
|
|
* @author Torstein Hønsi
|
|
*/
|
|
|
|
Highcharts.theme = {
|
|
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
|
|
chart: {
|
|
backgroundColor: {
|
|
linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
|
|
stops: [
|
|
[0, 'rgb(255, 255, 255)'],
|
|
[1, 'rgb(240, 240, 255)']
|
|
]
|
|
},
|
|
borderWidth: 2,
|
|
plotBackgroundColor: 'rgba(255, 255, 255, .9)',
|
|
plotShadow: true,
|
|
plotBorderWidth: 1
|
|
},
|
|
title: {
|
|
style: {
|
|
color: '#000',
|
|
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
|
|
}
|
|
},
|
|
subtitle: {
|
|
style: {
|
|
color: '#666666',
|
|
font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
|
|
}
|
|
},
|
|
xAxis: {
|
|
gridLineWidth: 1,
|
|
lineColor: '#000',
|
|
tickColor: '#000',
|
|
labels: {
|
|
style: {
|
|
color: '#000',
|
|
font: '11px Trebuchet MS, Verdana, sans-serif'
|
|
}
|
|
},
|
|
title: {
|
|
style: {
|
|
color: '#333',
|
|
fontWeight: 'bold',
|
|
fontSize: '12px',
|
|
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
|
|
|
}
|
|
}
|
|
},
|
|
yAxis: {
|
|
minorTickInterval: 'auto',
|
|
lineColor: '#000',
|
|
lineWidth: 1,
|
|
tickWidth: 1,
|
|
tickColor: '#000',
|
|
labels: {
|
|
style: {
|
|
color: '#000',
|
|
font: '11px Trebuchet MS, Verdana, sans-serif'
|
|
}
|
|
},
|
|
title: {
|
|
style: {
|
|
color: '#333',
|
|
fontWeight: 'bold',
|
|
fontSize: '12px',
|
|
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
|
|
}
|
|
}
|
|
},
|
|
legend: {
|
|
itemStyle: {
|
|
font: '9pt Trebuchet MS, Verdana, sans-serif',
|
|
color: 'black'
|
|
|
|
},
|
|
itemHoverStyle: {
|
|
color: '#039'
|
|
},
|
|
itemHiddenStyle: {
|
|
color: 'gray'
|
|
}
|
|
},
|
|
labels: {
|
|
style: {
|
|
color: '#99b'
|
|
}
|
|
},
|
|
|
|
navigation: {
|
|
buttonOptions: {
|
|
theme: {
|
|
stroke: '#CCCCCC'
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
// Apply the theme
|
|
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
|