$(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: [[1443657600000,32.3053],[1443744000000,32.0243],[1443830400000,32.0747],[1443916800000,32.0747],[1444003200000,32.0747],[1444089600000,32.2047],[1444176000000,32.2567],[1444262400000,32.5672],[1444348800000,32.5417],[1444435200000,32.9742],[1444521600000,32.9742],[1444608000000,32.9742],[1444694400000,33.527],[1444780800000,33.3507],[1444867200000,33.3507],[1444953600000,33.5432],[1445040000000,32.8904],[1445126400000,32.8904],[1445212800000,32.8904],[1445299200000,33.4825],[1445385600000,34.0152],[1445472000000,34.9307],[1445558400000,34.4627],[1445644800000,34.7742],[1445731200000,34.7742],[1445817600000,34.7742],[1445904000000,35.1081],[1445990400000,35.0555],[1446076800000,35.0023],[1446163200000,34.9296],[1446249600000,35.2718]], 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: [[1443657600000, 32.305350],[1443657600000, 32.305350],[1443744000000, 32.024275],[1443830400000, 32.074676],[1443916800000, 32.074676],[1444003200000, 32.074676],[1444089600000, 32.204665],[1444176000000, 32.256749],[1444262400000, 32.567233],[1444348800000, 32.541708],[1444435200000, 32.974202],[1444521600000, 32.974202],[1444608000000, 32.974202],[1444694400000, 33.526968],[1444780800000, 33.350733],[1444867200000, 33.350733],[1444953600000, 33.543190],[1445040000000, 32.890411],[1445126400000, 32.890411],[1445212800000, 32.890411],[1445299200000, 33.482511],[1445385600000, 34.015243],[1445472000000, 34.930704],[1445558400000, 34.462710],[1445644800000, 34.774195],[1445731200000, 34.774195],[1445817600000, 34.774195],[1445904000000, 35.108132],[1445990400000, 35.055517],[1446076800000, 35.002311],[1446163200000, 34.929616],[1446249600000, 35.271775]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });