$(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: [[1083369600000,5.3285],[1083456000000,5.3285],[1083542400000,5.3285],[1083628800000,5.3285],[1083715200000,5.3285],[1083801600000,5.3285],[1083888000000,5.3282],[1083974400000,5.3282],[1084060800000,5.3282],[1084147200000,5.3282],[1084233600000,5.3282],[1084320000000,5.328],[1084406400000,5.328],[1084492800000,5.328],[1084579200000,5.328],[1084665600000,5.328],[1084752000000,5.328],[1084838400000,5.3276],[1084924800000,5.3274],[1085011200000,5.3269],[1085097600000,5.3268],[1085184000000,5.3268],[1085270400000,5.3268],[1085356800000,5.3268],[1085443200000,5.326],[1085529600000,5.3254],[1085616000000,5.3254],[1085702400000,5.325],[1085788800000,5.325],[1085875200000,5.325],[1085961600000,5.325]], 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: [[1083369600000, 5.328500],[1083369600000, 5.328500],[1083456000000, 5.328500],[1083542400000, 5.328500],[1083628800000, 5.328500],[1083715200000, 5.328500],[1083801600000, 5.328500],[1083888000000, 5.328200],[1083974400000, 5.328200],[1084060800000, 5.328200],[1084147200000, 5.328200],[1084233600000, 5.328200],[1084320000000, 5.328000],[1084406400000, 5.328000],[1084492800000, 5.328000],[1084579200000, 5.328000],[1084665600000, 5.328000],[1084752000000, 5.328000],[1084838400000, 5.327600],[1084924800000, 5.327400],[1085011200000, 5.326900],[1085097600000, 5.326800],[1085184000000, 5.326800],[1085270400000, 5.326800],[1085356800000, 5.326800],[1085443200000, 5.326000],[1085529600000, 5.325400],[1085616000000, 5.325400],[1085702400000, 5.325000],[1085788800000, 5.325000],[1085875200000, 5.325000],[1085961600000, 5.325000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });