$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1362096000000,7.993],[1362182400000,7.993],[1362268800000,7.993],[1362355200000,7.993],[1362441600000,7.993],[1362528000000,7.993],[1362614400000,7.993],[1362700800000,7.993],[1362787200000,7.993],[1362873600000,7.993],[1362960000000,7.993],[1363046400000,7.993],[1363132800000,7.993],[1363219200000,7.993],[1363305600000,7.993],[1363392000000,7.993],[1363478400000,7.993],[1363564800000,7.993],[1363651200000,7.993],[1363737600000,7.993],[1363824000000,7.993],[1363910400000,7.993],[1363996800000,7.993],[1364083200000,7.993],[1364169600000,7.993],[1364256000000,7.993],[1364342400000,7.993],[1364428800000,7.993],[1364515200000,7.993],[1364601600000,7.993],[1364688000000,7.993]], 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, 7.993000],[1362096000000, 7.993000],[1362182400000, 7.993000],[1362268800000, 7.993000],[1362355200000, 7.993000],[1362441600000, 7.993000],[1362528000000, 7.993000],[1362614400000, 7.993000],[1362700800000, 7.993000],[1362787200000, 7.993000],[1362873600000, 7.993000],[1362960000000, 7.993000],[1363046400000, 7.993000],[1363132800000, 7.993000],[1363219200000, 7.993000],[1363305600000, 7.993000],[1363392000000, 7.993000],[1363478400000, 7.993000],[1363564800000, 7.993000],[1363651200000, 7.993000],[1363737600000, 7.993000],[1363824000000, 7.993000],[1363910400000, 7.993000],[1363996800000, 7.993000],[1364083200000, 7.993000],[1364169600000, 7.993000],[1364256000000, 7.993000],[1364342400000, 7.993000],[1364428800000, 7.993000],[1364515200000, 7.993000],[1364601600000, 7.993000],[1364688000000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });