$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1443657600000,2.50486],[1443744000000,2.49482],[1443830400000,2.50736],[1443916800000,2.50736],[1444003200000,2.50736],[1444089600000,2.53946],[1444176000000,2.54538],[1444262400000,2.58835],[1444348800000,2.60023],[1444435200000,2.65781],[1444521600000,2.65781],[1444608000000,2.65781],[1444694400000,2.70947],[1444780800000,2.69137],[1444867200000,2.69137],[1444953600000,2.69197],[1445040000000,2.62966],[1445126400000,2.62966],[1445212800000,2.62966],[1445299200000,2.6673],[1445385600000,2.70781],[1445472000000,2.77145],[1445558400000,2.71792],[1445644800000,2.70433],[1445731200000,2.70433],[1445817600000,2.70433],[1445904000000,2.73376],[1445990400000,2.70096],[1446076800000,2.69317],[1446163200000,2.67258],[1446249600000,2.69692]], 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, 2.504856],[1443657600000, 2.504856],[1443744000000, 2.494822],[1443830400000, 2.507362],[1443916800000, 2.507362],[1444003200000, 2.507362],[1444089600000, 2.539458],[1444176000000, 2.545381],[1444262400000, 2.588353],[1444348800000, 2.600230],[1444435200000, 2.657815],[1444521600000, 2.657815],[1444608000000, 2.657815],[1444694400000, 2.709468],[1444780800000, 2.691374],[1444867200000, 2.691374],[1444953600000, 2.691971],[1445040000000, 2.629660],[1445126400000, 2.629660],[1445212800000, 2.629660],[1445299200000, 2.667300],[1445385600000, 2.707813],[1445472000000, 2.771452],[1445558400000, 2.717924],[1445644800000, 2.704326],[1445731200000, 2.704326],[1445817600000, 2.704326],[1445904000000, 2.733761],[1445990400000, 2.700956],[1446076800000, 2.693171],[1446163200000, 2.672580],[1446249600000, 2.696922]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });