$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1462060800000,25.2009],[1462147200000,25.2009],[1462233600000,25.2009],[1462320000000,25.2009],[1462406400000,25.1953],[1462492800000,25.123],[1462579200000,25.1627],[1462665600000,25.1627],[1462752000000,25.1627],[1462838400000,25.1627],[1462924800000,25.1961],[1463011200000,25.3257],[1463097600000,25.3129],[1463184000000,25.4522],[1463270400000,25.4522],[1463356800000,25.4522],[1463443200000,25.3947],[1463529600000,25.2734],[1463616000000,25.2572],[1463702400000,25.2596],[1463788800000,25.2015],[1463875200000,null],[1463961600000,25.2015],[1464048000000,25.1237],[1464134400000,25.1337],[1464220800000,25.1125],[1464307200000,25.1],[1464393600000,25.136],[1464480000000,25.136],[1464566400000,25.136],[1464652800000,25.166]], 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: [[1462060800000, 25.200907],[1462060800000, 25.200907],[1462147200000, 25.200907],[1462233600000, 25.200907],[1462320000000, 25.200907],[1462406400000, 25.195281],[1462492800000, 25.123024],[1462579200000, 25.162672],[1462665600000, 25.162672],[1462752000000, 25.162672],[1462838400000, 25.162672],[1462924800000, 25.196137],[1463011200000, 25.325663],[1463097600000, 25.312938],[1463184000000, 25.452175],[1463270400000, 25.452175],[1463356800000, 25.452175],[1463443200000, 25.394671],[1463529600000, 25.273426],[1463616000000, 25.257239],[1463702400000, 25.259572],[1463788800000, 25.201506],[1463961600000, 25.201506],[1464048000000, 25.123692],[1464134400000, 25.133711],[1464220800000, 25.112500],[1464307200000, 25.099995],[1464393600000, 25.136025],[1464480000000, 25.136025],[1464566400000, 25.136025],[1464652800000, 25.166002]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });