$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1377993600000,6.27185],[1378080000000,6.27185],[1378166400000,6.27645],[1378252800000,6.25349],[1378339200000,6.27164],[1378425600000,6.25807],[1378512000000,6.25189],[1378598400000,6.25189],[1378684800000,6.25189],[1378771200000,6.28522],[1378857600000,6.3015],[1378944000000,6.30019],[1379030400000,6.30502],[1379116800000,6.30066],[1379203200000,6.30066],[1379289600000,6.30066],[1379376000000,6.34584],[1379462400000,6.34198],[1379548800000,6.35064],[1379635200000,6.42256],[1379721600000,6.398],[1379808000000,6.398],[1379894400000,6.398],[1379980800000,6.38608],[1380067200000,6.36539],[1380153600000,6.37062],[1380240000000,6.36676],[1380326400000,6.3704],[1380412800000,6.3704],[1380499200000,6.3704]], 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, 6.271854],[1377993600000, 6.271854],[1378080000000, 6.271854],[1378166400000, 6.276446],[1378252800000, 6.253492],[1378339200000, 6.271643],[1378425600000, 6.258071],[1378512000000, 6.251889],[1378598400000, 6.251889],[1378684800000, 6.251889],[1378771200000, 6.285216],[1378857600000, 6.301496],[1378944000000, 6.300192],[1379030400000, 6.305020],[1379116800000, 6.300660],[1379203200000, 6.300660],[1379289600000, 6.300660],[1379376000000, 6.345845],[1379462400000, 6.341978],[1379548800000, 6.350642],[1379635200000, 6.422565],[1379721600000, 6.397998],[1379808000000, 6.397998],[1379894400000, 6.397998],[1379980800000, 6.386079],[1380067200000, 6.365391],[1380153600000, 6.370623],[1380240000000, 6.366761],[1380326400000, 6.370400],[1380412800000, 6.370400],[1380499200000, 6.370400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });