$(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: [[1388534400000,3.69789],[1388620800000,3.69789],[1388707200000,3.69789],[1388793600000,3.67704],[1388880000000,3.67704],[1388966400000,3.67704],[1389052800000,3.67704],[1389139200000,3.67704],[1389225600000,3.6732],[1389312000000,3.65778],[1389398400000,3.67081],[1389484800000,3.67081],[1389571200000,3.67081],[1389657600000,3.67092],[1389744000000,3.6439],[1389830400000,3.64233],[1389916800000,3.62378],[1390003200000,3.60218],[1390089600000,3.60218],[1390176000000,3.60218],[1390262400000,3.56934],[1390348800000,3.54947],[1390435200000,3.53963],[1390521600000,3.51032],[1390608000000,3.43076],[1390694400000,3.43076],[1390780800000,3.43076],[1390867200000,3.44924],[1390953600000,3.52151],[1391040000000,3.57263],[1391126400000,3.52171]], 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: [[1388534400000, 3.697890],[1388534400000, 3.697890],[1388620800000, 3.697890],[1388707200000, 3.697890],[1388793600000, 3.677044],[1388880000000, 3.677044],[1388966400000, 3.677044],[1389052800000, 3.677044],[1389139200000, 3.677044],[1389225600000, 3.673197],[1389312000000, 3.657782],[1389398400000, 3.670809],[1389484800000, 3.670809],[1389571200000, 3.670809],[1389657600000, 3.670919],[1389744000000, 3.643895],[1389830400000, 3.642332],[1389916800000, 3.623781],[1390003200000, 3.602180],[1390089600000, 3.602180],[1390176000000, 3.602180],[1390262400000, 3.569342],[1390348800000, 3.549470],[1390435200000, 3.539630],[1390521600000, 3.510321],[1390608000000, 3.430764],[1390694400000, 3.430764],[1390780800000, 3.430764],[1390867200000, 3.449238],[1390953600000, 3.521512],[1391040000000, 3.572631],[1391126400000, 3.521715]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });