$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1451606400000,26.2231],[1451692800000,26.2231],[1451779200000,26.2231],[1451865600000,26.2231],[1451952000000,26.2231],[1452038400000,25.558],[1452124800000,25.2466],[1452211200000,25.2466],[1452297600000,25.2466],[1452384000000,25.2466],[1452470400000,25.2466],[1452556800000,25.5916],[1452643200000,25.2119],[1452729600000,25.5711],[1452816000000,26.0896],[1452902400000,26.3981],[1452988800000,26.6116],[1453075200000,26.6116],[1453161600000,26.8347],[1453248000000,27.0008],[1453334400000,26.8978],[1453420800000,26.7115],[1453507200000,26.7954],[1453593600000,26.7954],[1453680000000,26.7954],[1453766400000,26.8534],[1453852800000,26.9288],[1453939200000,27.079],[1454025600000,27.423],[1454112000000,27.9061],[1454198400000,27.9061]], 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: [[1451606400000, 26.223129],[1451606400000, 26.223129],[1451692800000, 26.223129],[1451779200000, 26.223129],[1451865600000, 26.223129],[1451952000000, 26.223129],[1452038400000, 25.557954],[1452124800000, 25.246597],[1452211200000, 25.246597],[1452297600000, 25.246597],[1452384000000, 25.246597],[1452470400000, 25.246597],[1452556800000, 25.591553],[1452643200000, 25.211859],[1452729600000, 25.571144],[1452816000000, 26.089577],[1452902400000, 26.398127],[1452988800000, 26.611564],[1453075200000, 26.611564],[1453161600000, 26.834749],[1453248000000, 27.000766],[1453334400000, 26.897800],[1453420800000, 26.711526],[1453507200000, 26.795371],[1453593600000, 26.795371],[1453680000000, 26.795371],[1453766400000, 26.853448],[1453852800000, 26.928814],[1453939200000, 27.078972],[1454025600000, 27.422974],[1454112000000, 27.906092],[1454198400000, 27.906092]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });