$(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: [[1372636800000,2.41105],[1372723200000,2.40496],[1372809600000,2.40128],[1372896000000,2.38859],[1372982400000,2.40887],[1373068800000,2.40329],[1373155200000,2.40329],[1373241600000,2.40329],[1373328000000,2.39088],[1373414400000,2.37538],[1373500800000,2.36386],[1373587200000,2.40515],[1373673600000,2.41198],[1373760000000,2.41198],[1373846400000,2.41198],[1373932800000,2.4269],[1374019200000,2.46363],[1374105600000,2.46412],[1374192000000,2.46299],[1374278400000,2.46991],[1374364800000,2.46991],[1374451200000,null],[1374537600000,2.49522],[1374624000000,2.49953],[1374710400000,2.51635],[1374796800000,2.48683],[1374883200000,2.50117],[1374969600000,2.50117],[1375056000000,2.50117],[1375142400000,2.50785],[1375228800000,2.51299]], 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: [[1372636800000, 2.411054],[1372636800000, 2.411054],[1372723200000, 2.404965],[1372809600000, 2.401276],[1372896000000, 2.388592],[1372982400000, 2.408865],[1373068800000, 2.403291],[1373155200000, 2.403291],[1373241600000, 2.403291],[1373328000000, 2.390885],[1373414400000, 2.375379],[1373500800000, 2.363862],[1373587200000, 2.405146],[1373673600000, 2.411983],[1373760000000, 2.411983],[1373846400000, 2.411983],[1373932800000, 2.426903],[1374019200000, 2.463632],[1374105600000, 2.464118],[1374192000000, 2.462988],[1374278400000, 2.469910],[1374364800000, 2.469910],[1374537600000, 2.495218],[1374624000000, 2.499531],[1374710400000, 2.516346],[1374796800000, 2.486828],[1374883200000, 2.501172],[1374969600000, 2.501172],[1375056000000, 2.501172],[1375142400000, 2.507852],[1375228800000, 2.512994]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });