$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1377993600000,3.9373],[1378080000000,3.9373],[1378166400000,3.96245],[1378252800000,3.90157],[1378339200000,3.89334],[1378425600000,3.84828],[1378512000000,3.87866],[1378598400000,3.87866],[1378684800000,3.87866],[1378771200000,3.91243],[1378857600000,3.9538],[1378944000000,3.97344],[1379030400000,3.95263],[1379116800000,3.94238],[1379203200000,3.94238],[1379289600000,3.94238],[1379376000000,4.01483],[1379462400000,3.97759],[1379548800000,3.9965],[1379635200000,4.08687],[1379721600000,4.0305],[1379808000000,4.0305],[1379894400000,4.0305],[1379980800000,4.01672],[1380067200000,3.99428],[1380153600000,3.98484],[1380240000000,3.96536],[1380326400000,3.92517],[1380412800000,3.92517],[1380499200000,3.92517]], 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.937299],[1377993600000, 3.937299],[1378080000000, 3.937299],[1378166400000, 3.962447],[1378252800000, 3.901567],[1378339200000, 3.893336],[1378425600000, 3.848276],[1378512000000, 3.878665],[1378598400000, 3.878665],[1378684800000, 3.878665],[1378771200000, 3.912433],[1378857600000, 3.953797],[1378944000000, 3.973440],[1379030400000, 3.952631],[1379116800000, 3.942383],[1379203200000, 3.942383],[1379289600000, 3.942383],[1379376000000, 4.014835],[1379462400000, 3.977589],[1379548800000, 3.996500],[1379635200000, 4.086867],[1379721600000, 4.030500],[1379808000000, 4.030500],[1379894400000, 4.030500],[1379980800000, 4.016720],[1380067200000, 3.994277],[1380153600000, 3.984844],[1380240000000, 3.965362],[1380326400000, 3.925170],[1380412800000, 3.925170],[1380499200000, 3.925170]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });