$(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: [[1454284800000,27.9061],[1454371200000,27.698],[1454457600000,28.2505],[1454544000000,28.096],[1454630400000,29.0153],[1454716800000,29.0277],[1454803200000,29.0277],[1454889600000,29.0277],[1454976000000,28.7265],[1455062400000,29.1513],[1455148800000,29.202],[1455235200000,29.5971],[1455321600000,29.4812],[1455408000000,29.4812],[1455494400000,29.4812],[1455580800000,29.9826],[1455667200000,30.1703],[1455753600000,29.7595],[1455840000000,29.3308],[1455926400000,29.7992],[1456012800000,29.7992],[1456099200000,29.7992],[1456185600000,29.7862],[1456272000000,29.9627],[1456358400000,29.8888],[1456444800000,30.0471],[1456531200000,29.7761],[1456617600000,29.7761],[1456704000000,29.7761]], 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: [[1454284800000, 27.906092],[1454284800000, 27.906092],[1454371200000, 27.698014],[1454457600000, 28.250462],[1454544000000, 28.096033],[1454630400000, 29.015329],[1454716800000, 29.027736],[1454803200000, 29.027736],[1454889600000, 29.027736],[1454976000000, 28.726498],[1455062400000, 29.151280],[1455148800000, 29.201986],[1455235200000, 29.597138],[1455321600000, 29.481227],[1455408000000, 29.481227],[1455494400000, 29.481227],[1455580800000, 29.982613],[1455667200000, 30.170306],[1455753600000, 29.759522],[1455840000000, 29.330761],[1455926400000, 29.799154],[1456012800000, 29.799154],[1456099200000, 29.799154],[1456185600000, 29.786195],[1456272000000, 29.962691],[1456358400000, 29.888778],[1456444800000, 30.047078],[1456531200000, 29.776061],[1456617600000, 29.776061],[1456704000000, 29.776061]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });