$(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: [[1538352000000,3.45696],[1538438400000,3.46622],[1538524800000,3.45781],[1538611200000,3.46283],[1538697600000,3.42413],[1538784000000,3.39676],[1538870400000,3.39676],[1538956800000,3.39676],[1539043200000,3.39065],[1539129600000,3.38315],[1539216000000,3.40891],[1539302400000,3.40743],[1539388800000,3.41421],[1539475200000,3.41421],[1539561600000,3.41421],[1539648000000,3.41421],[1539734400000,3.43558],[1539820800000,3.41363],[1539907200000,3.40981],[1539993600000,3.41996],[1540080000000,3.41996],[1540166400000,3.41996],[1540252800000,3.40863],[1540339200000,3.39914],[1540425600000,3.38701],[1540512000000,3.4087],[1540598400000,3.36988],[1540684800000,3.36988],[1540771200000,3.36988],[1540857600000,3.37405],[1540944000000,3.35606]], 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: [[1538352000000, 3.456956],[1538352000000, 3.456956],[1538438400000, 3.466218],[1538524800000, 3.457808],[1538611200000, 3.462829],[1538697600000, 3.424125],[1538784000000, 3.396759],[1538870400000, 3.396759],[1538956800000, 3.396759],[1539043200000, 3.390650],[1539129600000, 3.383146],[1539216000000, 3.408914],[1539302400000, 3.407433],[1539388800000, 3.414213],[1539475200000, 3.414213],[1539561600000, 3.414213],[1539648000000, 3.414213],[1539734400000, 3.435584],[1539820800000, 3.413634],[1539907200000, 3.409814],[1539993600000, 3.419958],[1540080000000, 3.419958],[1540166400000, 3.419958],[1540252800000, 3.408628],[1540339200000, 3.399144],[1540425600000, 3.387011],[1540512000000, 3.408702],[1540598400000, 3.369878],[1540684800000, 3.369878],[1540771200000, 3.369878],[1540857600000, 3.374045],[1540944000000, 3.356064]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });