$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1454284800000,2.94228],[1454371200000,2.94159],[1454457600000,2.96677],[1454544000000,2.95319],[1454630400000,3.04224],[1454716800000,3.03431],[1454803200000,3.03431],[1454889600000,3.03431],[1454976000000,2.99593],[1455062400000,3.01445],[1455148800000,3.03571],[1455235200000,3.04858],[1455321600000,3.04643],[1455408000000,3.04643],[1455494400000,3.04643],[1455580800000,3.11304],[1455667200000,3.14114],[1455753600000,3.1014],[1455840000000,3.07983],[1455926400000,3.12498],[1456012800000,3.12498],[1456099200000,3.12498],[1456185600000,3.1377],[1456272000000,3.16764],[1456358400000,3.11803],[1456444800000,3.14916],[1456531200000,3.12626],[1456617600000,3.12626],[1456704000000,3.12626]], 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, 2.942284],[1454284800000, 2.942284],[1454371200000, 2.941590],[1454457600000, 2.966769],[1454544000000, 2.953187],[1454630400000, 3.042236],[1454716800000, 3.034311],[1454803200000, 3.034311],[1454889600000, 3.034311],[1454976000000, 2.995932],[1455062400000, 3.014454],[1455148800000, 3.035707],[1455235200000, 3.048580],[1455321600000, 3.046431],[1455408000000, 3.046431],[1455494400000, 3.046431],[1455580800000, 3.113039],[1455667200000, 3.141137],[1455753600000, 3.101404],[1455840000000, 3.079830],[1455926400000, 3.124977],[1456012800000, 3.124977],[1456099200000, 3.124977],[1456185600000, 3.137701],[1456272000000, 3.167638],[1456358400000, 3.118026],[1456444800000, 3.149160],[1456531200000, 3.126260],[1456617600000, 3.126260],[1456704000000, 3.126260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });