$(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: [[1264982400000,2.76089],[1265068800000,2.77923],[1265155200000,2.79334],[1265241600000,2.80937],[1265328000000,2.75056],[1265414400000,2.67972],[1265500800000,2.67972],[1265587200000,2.67972],[1265673600000,2.66816],[1265760000000,2.70283],[1265846400000,2.70657],[1265932800000,2.72759],[1266019200000,2.70362],[1266105600000,2.70362],[1266192000000,2.70362],[1266278400000,2.71069],[1266364800000,2.72143],[1266451200000,2.76191],[1266537600000,2.71276],[1266624000000,2.70022],[1266710400000,2.70022],[1266796800000,2.70022],[1266883200000,2.748],[1266969600000,2.73229],[1267056000000,2.71103],[1267142400000,2.69942],[1267228800000,2.73123],[1267315200000,2.73123]], 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: [[1264982400000, 2.760894],[1264982400000, 2.760894],[1265068800000, 2.779230],[1265155200000, 2.793336],[1265241600000, 2.809370],[1265328000000, 2.750561],[1265414400000, 2.679718],[1265500800000, 2.679718],[1265587200000, 2.679718],[1265673600000, 2.668158],[1265760000000, 2.702832],[1265846400000, 2.706574],[1265932800000, 2.727595],[1266019200000, 2.703623],[1266105600000, 2.703623],[1266192000000, 2.703623],[1266278400000, 2.710695],[1266364800000, 2.721434],[1266451200000, 2.761905],[1266537600000, 2.712756],[1266624000000, 2.700221],[1266710400000, 2.700221],[1266796800000, 2.700221],[1266883200000, 2.748002],[1266969600000, 2.732293],[1267056000000, 2.711029],[1267142400000, 2.699422],[1267228800000, 2.731228],[1267315200000, 2.731228]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });