$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1388534400000,0.24497],[1388620800000,0.24497],[1388707200000,0.24497],[1388793600000,0.24474],[1388880000000,0.24474],[1388966400000,0.24474],[1389052800000,0.24474],[1389139200000,0.24474],[1389225600000,0.24474],[1389312000000,0.24108],[1389398400000,0.24071],[1389484800000,0.24071],[1389571200000,0.24071],[1389657600000,0.24133],[1389744000000,0.24047],[1389830400000,0.23963],[1389916800000,0.2393],[1390003200000,0.23907],[1390089600000,0.23907],[1390176000000,0.23907],[1390262400000,0.23758],[1390348800000,0.23637],[1390435200000,0.236],[1390521600000,0.23486],[1390608000000,0.2333],[1390694400000,0.2333],[1390780800000,0.2333],[1390867200000,0.23028],[1390953600000,0.23084],[1391040000000,0.23126],[1391126400000,0.22679]], 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, 0.244970],[1388534400000, 0.244970],[1388620800000, 0.244970],[1388707200000, 0.244970],[1388793600000, 0.244740],[1388880000000, 0.244740],[1388966400000, 0.244740],[1389052800000, 0.244740],[1389139200000, 0.244740],[1389225600000, 0.244740],[1389312000000, 0.241080],[1389398400000, 0.240710],[1389484800000, 0.240710],[1389571200000, 0.240710],[1389657600000, 0.241330],[1389744000000, 0.240470],[1389830400000, 0.239630],[1389916800000, 0.239300],[1390003200000, 0.239070],[1390089600000, 0.239070],[1390176000000, 0.239070],[1390262400000, 0.237580],[1390348800000, 0.236370],[1390435200000, 0.236000],[1390521600000, 0.234860],[1390608000000, 0.233300],[1390694400000, 0.233300],[1390780800000, 0.233300],[1390867200000, 0.230280],[1390953600000, 0.230840],[1391040000000, 0.231260],[1391126400000, 0.226790]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });