$(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: [[1435708800000,23.5027],[1435795200000,23.3171],[1435881600000,23.2514],[1435968000000,23.3218],[1436054400000,23.3218],[1436140800000,23.3218],[1436227200000,23.4095],[1436313600000,23.7207],[1436400000000,24.2217],[1436486400000,24.151],[1436572800000,24.5136],[1436659200000,24.5136],[1436745600000,24.5136],[1436832000000,24.2678],[1436918400000,24.2631],[1437004800000,24.3379],[1437091200000,23.8929],[1437177600000,23.9721],[1437264000000,23.9721],[1437350400000,23.9721],[1437436800000,23.9093],[1437523200000,23.9307],[1437609600000,23.9976],[1437696000000,24.2151],[1437782400000,24.1462],[1437868800000,24.1462],[1437955200000,24.1462],[1438041600000,24.1462],[1438128000000,24.2986],[1438214400000,24.3471],[1438300800000,23.6757]], 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: [[1435708800000, 23.502740],[1435708800000, 23.502740],[1435795200000, 23.317074],[1435881600000, 23.251447],[1435968000000, 23.321848],[1436054400000, 23.321848],[1436140800000, 23.321848],[1436227200000, 23.409499],[1436313600000, 23.720688],[1436400000000, 24.221669],[1436486400000, 24.150970],[1436572800000, 24.513586],[1436659200000, 24.513586],[1436745600000, 24.513586],[1436832000000, 24.267751],[1436918400000, 24.263065],[1437004800000, 24.337907],[1437091200000, 23.892933],[1437177600000, 23.972051],[1437264000000, 23.972051],[1437350400000, 23.972051],[1437436800000, 23.909272],[1437523200000, 23.930722],[1437609600000, 23.997585],[1437696000000, 24.215063],[1437782400000, 24.146224],[1437868800000, 24.146224],[1437955200000, 24.146224],[1438041600000, 24.146224],[1438128000000, 24.298649],[1438214400000, 24.347134],[1438300800000, 23.675700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });