$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1514764800000,8.01173],[1514851200000,8.01173],[1514937600000,8.01173],[1515024000000,8.05071],[1515110400000,8.13335],[1515196800000,8.17512],[1515283200000,8.17512],[1515369600000,8.17512],[1515456000000,8.17512],[1515542400000,8.05171],[1515628800000,8.12453],[1515715200000,8.18074],[1515801600000,8.30136],[1515888000000,8.30136],[1515974400000,8.30136],[1516060800000,8.4135],[1516147200000,8.40076],[1516233600000,8.38618],[1516320000000,8.45056],[1516406400000,8.4738],[1516492800000,8.4738],[1516579200000,8.4738],[1516665600000,8.47367],[1516752000000,8.4796],[1516838400000,8.57842],[1516924800000,8.60021],[1517011200000,8.57107],[1517097600000,8.57107],[1517184000000,8.57107],[1517270400000,8.43864],[1517356800000,8.39338]], 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: [[1514764800000, 8.011726],[1514764800000, 8.011726],[1514851200000, 8.011726],[1514937600000, 8.011726],[1515024000000, 8.050705],[1515110400000, 8.133348],[1515196800000, 8.175124],[1515283200000, 8.175124],[1515369600000, 8.175124],[1515456000000, 8.175124],[1515542400000, 8.051707],[1515628800000, 8.124531],[1515715200000, 8.180737],[1515801600000, 8.301356],[1515888000000, 8.301356],[1515974400000, 8.301356],[1516060800000, 8.413501],[1516147200000, 8.400762],[1516233600000, 8.386182],[1516320000000, 8.450559],[1516406400000, 8.473804],[1516492800000, 8.473804],[1516579200000, 8.473804],[1516665600000, 8.473670],[1516752000000, 8.479596],[1516838400000, 8.578423],[1516924800000, 8.600214],[1517011200000, 8.571070],[1517097600000, 8.571070],[1517184000000, 8.571070],[1517270400000, 8.438643],[1517356800000, 8.393380]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });