JavaScript
$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'line',
marginRight: 130,
marginBottom: 25,
zoomType: 'x'
},
title: {
text: 'ROP Trend',
x: -20 //center
},
subtitle: {
text: '',
x: -20
},
xAxis: {
// categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
//'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'ROP (ft/hr)'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
formatter: function() {
return '<b>'+ this.series.name +'</b><br/>'+
this.x +': '+ this.y +'°C';
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -10,
y: 100,
borderWidth: 0
},
series: [{
name: 'Well 1',
data: [{x: 100, y: 25}, {x: 1100, y: 24.5}, {x: 2100, y: 26}, {x: 3100, y: 22}, {x: 4100, y: 23.5}, {x: 5100, y: 21.5},{x:6099, y:20},null,
{x: 6100, y: 5.5}, {x: 7100, y: 8.5}, {x: 8100, y: 6}, {x: 9100, y: 5}, {x: 10100, y: 8}, {x:11100, y: 7}, {x:12100, y: 6.5}],
zoneAxis: 'x',
zones: [{value: 6100, dashStyle: 'Solid'},{value: 12100, dashStyle: 'Dash'}]
},
{
name: 'Well 2',
data: [{x: 100, y: 35}, {x: 1100, y: 34.5}, {x: 2100, y: 36}, {x: 3100, y: 32}, {x:...