$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1377993600000,12.388],[1378080000000,12.388],[1378166400000,12.4522],[1378252800000,12.4258],[1378339200000,12.4764],[1378425600000,12.5161],[1378512000000,12.4518],[1378598400000,12.4518],[1378684800000,12.4518],[1378771200000,12.5353],[1378857600000,12.5418],[1378944000000,12.6041],[1379030400000,12.631],[1379116800000,12.6523],[1379203200000,12.6523],[1379289600000,12.6523],[1379376000000,12.7326],[1379462400000,12.7134],[1379548800000,12.7689],[1379635200000,12.8581],[1379721600000,12.8043],[1379808000000,12.8043],[1379894400000,12.8043],[1379980800000,12.8359],[1380067200000,12.7548],[1380153600000,12.8245],[1380240000000,12.8175],[1380326400000,12.8811],[1380412800000,12.8811],[1380499200000,12.8811]], 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.388003],[1377993600000, 12.388003],[1378080000000, 12.388003],[1378166400000, 12.452203],[1378252800000, 12.425799],[1378339200000, 12.476393],[1378425600000, 12.516141],[1378512000000, 12.451803],[1378598400000, 12.451803],[1378684800000, 12.451803],[1378771200000, 12.535319],[1378857600000, 12.541754],[1378944000000, 12.604127],[1379030400000, 12.631031],[1379116800000, 12.652332],[1379203200000, 12.652332],[1379289600000, 12.652332],[1379376000000, 12.732558],[1379462400000, 12.713411],[1379548800000, 12.768908],[1379635200000, 12.858098],[1379721600000, 12.804339],[1379808000000, 12.804339],[1379894400000, 12.804339],[1379980800000, 12.835932],[1380067200000, 12.754757],[1380153600000, 12.824508],[1380240000000, 12.817475],[1380326400000, 12.881100],[1380412800000, 12.881100],[1380499200000, 12.881100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });