$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс GBP, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс GBP', data: [[983404800000,7.86015],[983491200000,7.87184],[983577600000,7.99626],[983664000000,7.99626],[983750400000,7.99626],[983836800000,7.97819],[983923200000,7.95752],[984009600000,7.93759],[984096000000,7.93759],[984182400000,7.93759],[984268800000,7.93759],[984355200000,7.9602],[984441600000,7.93154],[984528000000,7.86545],[984614400000,7.89297],[984700800000,7.81509],[984787200000,7.75545],[984873600000,7.75545],[984960000000,7.75545],[985046400000,7.74711],[985132800000,7.74194],[985219200000,7.74043],[985305600000,7.69708],[985392000000,7.7257],[985478400000,7.7257],[985564800000,7.7257],[985651200000,7.76991],[985737600000,7.77447],[985824000000,7.75114],[985910400000,7.77447],[985996800000,7.72971]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[983404800000, 7.860150],[983404800000, 7.860150],[983491200000, 7.871840],[983577600000, 7.996260],[983664000000, 7.996260],[983750400000, 7.996260],[983836800000, 7.978190],[983923200000, 7.957520],[984009600000, 7.937590],[984096000000, 7.937590],[984182400000, 7.937590],[984268800000, 7.937590],[984355200000, 7.960200],[984441600000, 7.931540],[984528000000, 7.865450],[984614400000, 7.892970],[984700800000, 7.815090],[984787200000, 7.755450],[984873600000, 7.755450],[984960000000, 7.755450],[985046400000, 7.747110],[985132800000, 7.741940],[985219200000, 7.740430],[985305600000, 7.697080],[985392000000, 7.725700],[985478400000, 7.725700],[985564800000, 7.725700],[985651200000, 7.769910],[985737600000, 7.774470],[985824000000, 7.751140],[985910400000, 7.774470],[985996800000, 7.729710]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });