$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1377993600000,12.1116],[1378080000000,12.1116],[1378166400000,12.1116],[1378252800000,12.0836],[1378339200000,12.0896],[1378425600000,12.095],[1378512000000,12.0573],[1378598400000,12.0573],[1378684800000,12.0573],[1378771200000,12.0985],[1378857600000,12.1121],[1378944000000,12.1216],[1379030400000,12.1471],[1379116800000,12.1413],[1379203200000,12.1413],[1379289600000,12.1413],[1379376000000,12.1779],[1379462400000,12.179],[1379548800000,12.1838],[1379635200000,12.2612],[1379721600000,12.2474],[1379808000000,12.2474],[1379894400000,12.2474],[1379980800000,12.2463],[1380067200000,12.2303],[1380153600000,12.2478],[1380240000000,12.2462],[1380326400000,12.2503],[1380412800000,12.2503],[1380499200000,12.2503]], 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, 12.111597],[1377993600000, 12.111597],[1378080000000, 12.111597],[1378166400000, 12.111597],[1378252800000, 12.083583],[1378339200000, 12.089559],[1378425600000, 12.095011],[1378512000000, 12.057316],[1378598400000, 12.057316],[1378684800000, 12.057316],[1378771200000, 12.098453],[1378857600000, 12.112111],[1378944000000, 12.121552],[1379030400000, 12.147121],[1379116800000, 12.141327],[1379203200000, 12.141327],[1379289600000, 12.141327],[1379376000000, 12.177861],[1379462400000, 12.178993],[1379548800000, 12.183801],[1379635200000, 12.261233],[1379721600000, 12.247350],[1379808000000, 12.247350],[1379894400000, 12.247350],[1379980800000, 12.246299],[1380067200000, 12.230296],[1380153600000, 12.247819],[1380240000000, 12.246242],[1380326400000, 12.250334],[1380412800000, 12.250334],[1380499200000, 12.250334]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });