$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1377993600000,15.0523],[1378080000000,15.0523],[1378166400000,15.0247],[1378252800000,14.987],[1378339200000,14.9816],[1378425600000,15.019],[1378512000000,14.9223],[1378598400000,14.9223],[1378684800000,14.9223],[1378771200000,15.0142],[1378857600000,15.0644],[1378944000000,15.0919],[1379030400000,15.1213],[1379116800000,15.1291],[1379203200000,15.1291],[1379289600000,15.1291],[1379376000000,15.1975],[1379462400000,15.192],[1379548800000,15.1897],[1379635200000,15.4114],[1379721600000,15.3761],[1379808000000,15.3761],[1379894400000,15.3761],[1379980800000,15.3693],[1380067200000,15.3273],[1380153600000,15.3626],[1380240000000,15.3525],[1380326400000,15.3957],[1380412800000,15.3957],[1380499200000,15.3957]], 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: [[1377993600000, 15.052270],[1377993600000, 15.052270],[1378080000000, 15.052270],[1378166400000, 15.024701],[1378252800000, 14.987017],[1378339200000, 14.981614],[1378425600000, 15.019013],[1378512000000, 14.922314],[1378598400000, 14.922314],[1378684800000, 14.922314],[1378771200000, 15.014186],[1378857600000, 15.064387],[1378944000000, 15.091949],[1379030400000, 15.121277],[1379116800000, 15.129119],[1379203200000, 15.129119],[1379289600000, 15.129119],[1379376000000, 15.197509],[1379462400000, 15.192046],[1379548800000, 15.189658],[1379635200000, 15.411414],[1379721600000, 15.376143],[1379808000000, 15.376143],[1379894400000, 15.376143],[1379980800000, 15.369316],[1380067200000, 15.327311],[1380153600000, 15.362578],[1380240000000, 15.352519],[1380326400000, 15.395737],[1380412800000, 15.395737],[1380499200000, 15.395737]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });