$(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: [[1125532800000,1.52797],[1125619200000,1.57102],[1125705600000,1.59394],[1125792000000,1.59394],[1125878400000,1.59394],[1125964800000,1.60833],[1126051200000,1.60507],[1126137600000,1.60145],[1126224000000,1.59647],[1126310400000,1.59531],[1126396800000,1.59531],[1126483200000,1.59531],[1126569600000,null],[1126656000000,null],[1126742400000,1.58686],[1126828800000,null],[1126915200000,null],[1127001600000,1.59238],[1127088000000,1.59238],[1127174400000,1.58015],[1127260800000,1.58296],[1127347200000,1.58485],[1127433600000,1.5786],[1127520000000,1.56844],[1127606400000,1.56844],[1127692800000,1.56844],[1127779200000,1.55846],[1127865600000,1.55597],[1127952000000,1.55852],[1128038400000,1.56164]], 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: [[1125532800000, 1.527965],[1125532800000, 1.527965],[1125619200000, 1.571015],[1125705600000, 1.593941],[1125792000000, 1.593941],[1125878400000, 1.593941],[1125964800000, 1.608334],[1126051200000, 1.605071],[1126137600000, 1.601445],[1126224000000, 1.596469],[1126310400000, 1.595312],[1126396800000, 1.595312],[1126483200000, 1.595312],[1126742400000, 1.586856],[1127001600000, 1.592375],[1127088000000, 1.592375],[1127174400000, 1.580151],[1127260800000, 1.582960],[1127347200000, 1.584850],[1127433600000, 1.578601],[1127520000000, 1.568442],[1127606400000, 1.568442],[1127692800000, 1.568442],[1127779200000, 1.558460],[1127865600000, 1.555970],[1127952000000, 1.558517],[1128038400000, 1.561643]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });