$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1396310400000,2.03113],[1396396800000,2.0515],[1396483200000,2.07737],[1396569600000,2.07045],[1396656000000,2.14016],[1396742400000,2.14016],[1396828800000,2.14016],[1396915200000,2.13814],[1397001600000,2.15577],[1397088000000,2.19148],[1397174400000,2.33125],[1397260800000,2.33447],[1397347200000,2.33447],[1397433600000,2.33447],[1397520000000,2.41111],[1397606400000,2.29368],[1397692800000,2.10683],[1397779200000,2.08573],[1397865600000,2.0834],[1397952000000,2.0834],[1398038400000,2.0834],[1398124800000,2.0834],[1398211200000,2.08713],[1398297600000,2.13055],[1398384000000,2.10936],[1398470400000,2.10696],[1398556800000,2.10696],[1398643200000,2.10696],[1398729600000,2.1045],[1398816000000,2.11834]], 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: [[1396310400000, 2.031126],[1396310400000, 2.031126],[1396396800000, 2.051497],[1396483200000, 2.077372],[1396569600000, 2.070446],[1396656000000, 2.140161],[1396742400000, 2.140161],[1396828800000, 2.140161],[1396915200000, 2.138136],[1397001600000, 2.155772],[1397088000000, 2.191475],[1397174400000, 2.331252],[1397260800000, 2.334468],[1397347200000, 2.334468],[1397433600000, 2.334468],[1397520000000, 2.411109],[1397606400000, 2.293678],[1397692800000, 2.106835],[1397779200000, 2.085728],[1397865600000, 2.083404],[1397952000000, 2.083404],[1398038400000, 2.083404],[1398124800000, 2.083404],[1398211200000, 2.087130],[1398297600000, 2.130547],[1398384000000, 2.109356],[1398470400000, 2.106956],[1398556800000, 2.106956],[1398643200000, 2.106956],[1398729600000, 2.104501],[1398816000000, 2.118337]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });