$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1388534400000,7.993],[1388620800000,7.993],[1388707200000,7.993],[1388793600000,7.993],[1388880000000,7.993],[1388966400000,7.993],[1389052800000,7.993],[1389139200000,7.993],[1389225600000,7.993],[1389312000000,7.993],[1389398400000,7.993],[1389484800000,7.993],[1389571200000,7.993],[1389657600000,7.993],[1389744000000,7.993],[1389830400000,7.993],[1389916800000,7.993],[1390003200000,7.993],[1390089600000,7.993],[1390176000000,7.993],[1390262400000,7.993],[1390348800000,7.993],[1390435200000,7.993],[1390521600000,7.993],[1390608000000,7.993],[1390694400000,7.993],[1390780800000,7.993],[1390867200000,7.993],[1390953600000,7.993],[1391040000000,7.993],[1391126400000,7.993]], 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, 7.993000],[1388534400000, 7.993000],[1388620800000, 7.993000],[1388707200000, 7.993000],[1388793600000, 7.993000],[1388880000000, 7.993000],[1388966400000, 7.993000],[1389052800000, 7.993000],[1389139200000, 7.993000],[1389225600000, 7.993000],[1389312000000, 7.993000],[1389398400000, 7.993000],[1389484800000, 7.993000],[1389571200000, 7.993000],[1389657600000, 7.993000],[1389744000000, 7.993000],[1389830400000, 7.993000],[1389916800000, 7.993000],[1390003200000, 7.993000],[1390089600000, 7.993000],[1390176000000, 7.993000],[1390262400000, 7.993000],[1390348800000, 7.993000],[1390435200000, 7.993000],[1390521600000, 7.993000],[1390608000000, 7.993000],[1390694400000, 7.993000],[1390780800000, 7.993000],[1390867200000, 7.993000],[1390953600000, 7.993000],[1391040000000, 7.993000],[1391126400000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });