$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1454284800000,6.28544],[1454371200000,6.30188],[1454457600000,6.41254],[1454544000000,6.38807],[1454630400000,6.57169],[1454716800000,6.57718],[1454803200000,6.57718],[1454889600000,6.57718],[1454976000000,6.47693],[1455062400000,6.54644],[1455148800000,6.59351],[1455235200000,6.65329],[1455321600000,6.68372],[1455408000000,6.68372],[1455494400000,6.68372],[1455580800000,6.82276],[1455667200000,6.84724],[1455753600000,6.76676],[1455840000000,6.69392],[1455926400000,6.80703],[1456012800000,6.80703],[1456099200000,6.80703],[1456185600000,6.8245],[1456272000000,6.86148],[1456358400000,6.84267],[1456444800000,6.89454],[1456531200000,6.82452],[1456617600000,6.82452],[1456704000000,6.82452]], 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, 6.285439],[1454284800000, 6.285439],[1454371200000, 6.301878],[1454457600000, 6.412544],[1454544000000, 6.388075],[1454630400000, 6.571691],[1454716800000, 6.577182],[1454803200000, 6.577182],[1454889600000, 6.577182],[1454976000000, 6.476934],[1455062400000, 6.546436],[1455148800000, 6.593508],[1455235200000, 6.653285],[1455321600000, 6.683722],[1455408000000, 6.683722],[1455494400000, 6.683722],[1455580800000, 6.822759],[1455667200000, 6.847239],[1455753600000, 6.766757],[1455840000000, 6.693923],[1455926400000, 6.807034],[1456012800000, 6.807034],[1456099200000, 6.807034],[1456185600000, 6.824496],[1456272000000, 6.861475],[1456358400000, 6.842669],[1456444800000, 6.894536],[1456531200000, 6.824519],[1456617600000, 6.824519],[1456704000000, 6.824519]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });