$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1193875200000,2.11299],[1193961600000,2.10948],[1194048000000,2.11767],[1194134400000,2.11767],[1194220800000,2.11767],[1194307200000,2.11899],[1194393600000,2.12762],[1194480000000,2.15321],[1194566400000,2.14502],[1194652800000,2.14751],[1194739200000,2.14751],[1194825600000,2.14751],[1194912000000,2.1323],[1194998400000,2.13639],[1195084800000,2.14999],[1195171200000,2.14107],[1195257600000,2.14283],[1195344000000,2.14283],[1195430400000,2.14283],[1195516800000,2.14327],[1195603200000,2.16243],[1195689600000,2.16667],[1195776000000,2.16886],[1195862400000,2.16594],[1195948800000,2.16594],[1196035200000,2.16594],[1196121600000,2.1712],[1196208000000,2.17544],[1196294400000,2.15687],[1196380800000,2.15555]], 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: [[1193875200000, 2.112991],[1193875200000, 2.112991],[1193961600000, 2.109481],[1194048000000, 2.117671],[1194134400000, 2.117671],[1194220800000, 2.117671],[1194307200000, 2.118987],[1194393600000, 2.127617],[1194480000000, 2.153212],[1194566400000, 2.145021],[1194652800000, 2.147508],[1194739200000, 2.147508],[1194825600000, 2.147508],[1194912000000, 2.132297],[1194998400000, 2.136392],[1195084800000, 2.149994],[1195171200000, 2.141072],[1195257600000, 2.142828],[1195344000000, 2.142828],[1195430400000, 2.142828],[1195516800000, 2.143266],[1195603200000, 2.162426],[1195689600000, 2.166668],[1195776000000, 2.168862],[1195862400000, 2.165936],[1195948800000, 2.165936],[1196035200000, 2.165936],[1196121600000, 2.171202],[1196208000000, 2.175443],[1196294400000, 2.156868],[1196380800000, 2.155552]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });