$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1454284800000,1.03256],[1454371200000,1.02506],[1454457600000,1.04531],[1454544000000,1.03963],[1454630400000,1.07381],[1454716800000,1.07363],[1454803200000,1.07363],[1454889600000,1.07363],[1454976000000,1.06151],[1455062400000,1.07736],[1455148800000,1.08031],[1455235200000,1.0934],[1455321600000,1.08936],[1455408000000,1.08936],[1455494400000,1.08936],[1455580800000,1.10895],[1455667200000,1.11622],[1455753600000,1.10041],[1455840000000,1.08512],[1455926400000,1.10273],[1456012800000,1.10273],[1456099200000,1.10273],[1456185600000,1.10229],[1456272000000,1.10858],[1456358400000,1.10507],[1456444800000,1.11072],[1456531200000,1.10021],[1456617600000,1.10021],[1456704000000,1.10021]], 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, 1.032565],[1454284800000, 1.032565],[1454371200000, 1.025055],[1454457600000, 1.045307],[1454544000000, 1.039631],[1454630400000, 1.073807],[1454716800000, 1.073630],[1454803200000, 1.073630],[1454889600000, 1.073630],[1454976000000, 1.061507],[1455062400000, 1.077363],[1455148800000, 1.080315],[1455235200000, 1.093396],[1455321600000, 1.089355],[1455408000000, 1.089355],[1455494400000, 1.089355],[1455580800000, 1.108947],[1455667200000, 1.116220],[1455753600000, 1.100411],[1455840000000, 1.085119],[1455926400000, 1.102733],[1456012800000, 1.102733],[1456099200000, 1.102733],[1456185600000, 1.102294],[1456272000000, 1.108580],[1456358400000, 1.105068],[1456444800000, 1.110716],[1456531200000, 1.100209],[1456617600000, 1.100209],[1456704000000, 1.100209]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });