$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1454284800000,35.2786],[1454371200000,35.0633],[1454457600000,35.7634],[1454544000000,35.5727],[1454630400000,36.1822],[1454716800000,36.2362],[1454803200000,36.2362],[1454889600000,36.2362],[1454976000000,36.0802],[1455062400000,36.3127],[1455148800000,36.3877],[1455235200000,36.7356],[1455321600000,36.7587],[1455408000000,36.7587],[1455494400000,36.7587],[1455580800000,37.7015],[1455667200000,37.7763],[1455753600000,37.3156],[1455840000000,36.9208],[1455926400000,37.4763],[1456012800000,37.4763],[1456099200000,37.4763],[1456185600000,37.5567],[1456272000000,37.8434],[1456358400000,37.7232],[1456444800000,37.8551],[1456531200000,37.5651],[1456617600000,37.5651],[1456704000000,37.5651]], 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, 35.278631],[1454284800000, 35.278631],[1454371200000, 35.063341],[1454457600000, 35.763414],[1454544000000, 35.572673],[1454630400000, 36.182154],[1454716800000, 36.236223],[1454803200000, 36.236223],[1454889600000, 36.236223],[1454976000000, 36.080189],[1455062400000, 36.312675],[1455148800000, 36.387735],[1455235200000, 36.735594],[1455321600000, 36.758664],[1455408000000, 36.758664],[1455494400000, 36.758664],[1455580800000, 37.701479],[1455667200000, 37.776349],[1455753600000, 37.315590],[1455840000000, 36.920760],[1455926400000, 37.476329],[1456012800000, 37.476329],[1456099200000, 37.476329],[1456185600000, 37.556662],[1456272000000, 37.843357],[1456358400000, 37.723229],[1456444800000, 37.855115],[1456531200000, 37.565053],[1456617600000, 37.565053],[1456704000000, 37.565053]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });