$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1298937600000,10.9769],[1299024000000,10.9733],[1299110400000,10.9602],[1299196800000,10.9927],[1299283200000,11.075],[1299369600000,11.075],[1299456000000,11.075],[1299542400000,11.075],[1299628800000,11.075],[1299715200000,11.052],[1299801600000,10.9639],[1299888000000,10.929],[1299974400000,10.929],[1300060800000,10.929],[1300147200000,11.0679],[1300233600000,11.0249],[1300320000000,11.0825],[1300406400000,11.1246],[1300492800000,11.2301],[1300579200000,11.2301],[1300665600000,11.2301],[1300752000000,11.281],[1300838400000,11.2945],[1300924800000,11.2391],[1301011200000,11.2426],[1301097600000,11.2355],[1301184000000,11.2355],[1301270400000,11.2355],[1301356800000,11.1695],[1301443200000,11.1965],[1301529600000,11.2156]], 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: [[1298937600000, 10.976864],[1298937600000, 10.976864],[1299024000000, 10.973317],[1299110400000, 10.960203],[1299196800000, 10.992745],[1299283200000, 11.075019],[1299369600000, 11.075019],[1299456000000, 11.075019],[1299542400000, 11.075019],[1299628800000, 11.075019],[1299715200000, 11.052007],[1299801600000, 10.963928],[1299888000000, 10.929013],[1299974400000, 10.929013],[1300060800000, 10.929013],[1300147200000, 11.067877],[1300233600000, 11.024868],[1300320000000, 11.082535],[1300406400000, 11.124638],[1300492800000, 11.230100],[1300579200000, 11.230100],[1300665600000, 11.230100],[1300752000000, 11.280965],[1300838400000, 11.294476],[1300924800000, 11.239110],[1301011200000, 11.242639],[1301097600000, 11.235540],[1301184000000, 11.235540],[1301270400000, 11.235540],[1301356800000, 11.169472],[1301443200000, 11.196536],[1301529600000, 11.215640]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });