$(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: [[1362096000000,2.52776],[1362182400000,2.50522],[1362268800000,2.50522],[1362355200000,2.50522],[1362441600000,2.51135],[1362528000000,2.52193],[1362614400000,2.51087],[1362700800000,2.50503],[1362787200000,2.50503],[1362873600000,2.50503],[1362960000000,2.50503],[1363046400000,2.50436],[1363132800000,2.51707],[1363219200000,2.50712],[1363305600000,2.48876],[1363392000000,2.52009],[1363478400000,2.52009],[1363564800000,2.52009],[1363651200000,2.48626],[1363737600000,2.49017],[1363824000000,2.48671],[1363910400000,2.467],[1363996800000,2.47574],[1364083200000,2.47574],[1364169600000,2.47574],[1364256000000,2.4849],[1364342400000,2.46075],[1364428800000,2.44045],[1364515200000,2.44834],[1364601600000,2.44834],[1364688000000,2.44834]], 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: [[1362096000000, 2.527763],[1362096000000, 2.527763],[1362182400000, 2.505220],[1362268800000, 2.505220],[1362355200000, 2.505220],[1362441600000, 2.511352],[1362528000000, 2.521926],[1362614400000, 2.510875],[1362700800000, 2.505033],[1362787200000, 2.505033],[1362873600000, 2.505033],[1362960000000, 2.505033],[1363046400000, 2.504365],[1363132800000, 2.517072],[1363219200000, 2.507119],[1363305600000, 2.488759],[1363392000000, 2.520092],[1363478400000, 2.520092],[1363564800000, 2.520092],[1363651200000, 2.486262],[1363737600000, 2.490165],[1363824000000, 2.486707],[1363910400000, 2.466999],[1363996800000, 2.475740],[1364083200000, 2.475740],[1364169600000, 2.475740],[1364256000000, 2.484905],[1364342400000, 2.460753],[1364428800000, 2.440447],[1364515200000, 2.448339],[1364601600000, 2.448339],[1364688000000, 2.448339]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });