$(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: [[1262736000000,7.985],[1262822400000,7.985],[1262908800000,7.985],[1262995200000,7.985],[1263081600000,7.985],[1263168000000,7.985],[1263254400000,7.9905],[1263340800000,7.9984],[1263427200000,8.004],[1263513600000,8.0024],[1263600000000,8.0012],[1263686400000,8.0012],[1263772800000,8.0012],[1263859200000,8.0012],[1263945600000,8.0055],[1264032000000,8.0055],[1264118400000,8.01],[1264204800000,8.0084],[1264291200000,8.0084],[1264377600000,8.0084],[1264464000000,8.008],[1264550400000,8.0048],[1264636800000,8.0024],[1264723200000,8.0012],[1264809600000,7.999],[1264896000000,7.999]], 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: [[1262736000000, 7.985000],[1262736000000, 7.985000],[1262822400000, 7.985000],[1262908800000, 7.985000],[1262995200000, 7.985000],[1263081600000, 7.985000],[1263168000000, 7.985000],[1263254400000, 7.990500],[1263340800000, 7.998400],[1263427200000, 8.004000],[1263513600000, 8.002400],[1263600000000, 8.001200],[1263686400000, 8.001200],[1263772800000, 8.001200],[1263859200000, 8.001200],[1263945600000, 8.005500],[1264032000000, 8.005500],[1264118400000, 8.010000],[1264204800000, 8.008400],[1264291200000, 8.008400],[1264377600000, 8.008400],[1264464000000, 8.008000],[1264550400000, 8.004800],[1264636800000, 8.002400],[1264723200000, 8.001200],[1264809600000, 7.999000],[1264896000000, 7.999000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });