$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1377993600000,3.06381],[1378080000000,3.06381],[1378166400000,3.05733],[1378252800000,3.04923],[1378339200000,3.049],[1378425600000,3.05617],[1378512000000,3.0365],[1378598400000,3.0365],[1378684800000,3.0365],[1378771200000,3.05432],[1378857600000,3.06497],[1378944000000,3.07145],[1379030400000,3.07655],[1379116800000,3.0777],[1379203200000,3.0777],[1379289600000,3.0777],[1379376000000,3.09206],[1379462400000,3.09182],[1379548800000,3.0909],[1379635200000,3.13558],[1379721600000,3.1284],[1379808000000,3.1284],[1379894400000,3.1284],[1379980800000,3.12701],[1380067200000,3.11891],[1380153600000,3.12608],[1380240000000,3.12493],[1380326400000,3.13373],[1380412800000,3.13373],[1380499200000,3.13373]], 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, 3.063814],[1377993600000, 3.063814],[1378080000000, 3.063814],[1378166400000, 3.057332],[1378252800000, 3.049229],[1378339200000, 3.048998],[1378425600000, 3.056174],[1378512000000, 3.036497],[1378598400000, 3.036497],[1378684800000, 3.036497],[1378771200000, 3.054322],[1378857600000, 3.064971],[1378944000000, 3.071453],[1379030400000, 3.076546],[1379116800000, 3.077703],[1379203200000, 3.077703],[1379289600000, 3.077703],[1379376000000, 3.092056],[1379462400000, 3.091824],[1379548800000, 3.090898],[1379635200000, 3.135576],[1379721600000, 3.128400],[1379808000000, 3.128400],[1379894400000, 3.128400],[1379980800000, 3.127011],[1380067200000, 3.118909],[1380153600000, 3.126085],[1380240000000, 3.124928],[1380326400000, 3.133725],[1380412800000, 3.133725],[1380499200000, 3.133725]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });