$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1262736000000,1.16959],[1262822400000,1.16955],[1262908800000,1.16955],[1262995200000,1.16955],[1263081600000,1.16955],[1263168000000,1.16955],[1263254400000,1.17053],[1263340800000,1.17157],[1263427200000,1.17243],[1263513600000,1.17212],[1263600000000,1.17201],[1263686400000,1.17201],[1263772800000,1.17201],[1263859200000,1.172],[1263945600000,1.17256],[1264032000000,1.1726],[1264118400000,1.17332],[1264204800000,1.17307],[1264291200000,1.17307],[1264377600000,1.17307],[1264464000000,1.17301],[1264550400000,1.17254],[1264636800000,1.1722],[1264723200000,1.17201],[1264809600000,1.17171],[1264896000000,1.17171]], 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, 1.169591],[1262736000000, 1.169591],[1262822400000, 1.169554],[1262908800000, 1.169554],[1262995200000, 1.169554],[1263081600000, 1.169554],[1263168000000, 1.169554],[1263254400000, 1.170528],[1263340800000, 1.171569],[1263427200000, 1.172434],[1263513600000, 1.172121],[1263600000000, 1.172009],[1263686400000, 1.172009],[1263772800000, 1.172009],[1263859200000, 1.171996],[1263945600000, 1.172560],[1264032000000, 1.172601],[1264118400000, 1.173318],[1264204800000, 1.173068],[1264291200000, 1.173068],[1264377600000, 1.173068],[1264464000000, 1.173012],[1264550400000, 1.172537],[1264636800000, 1.172200],[1264723200000, 1.172008],[1264809600000, 1.171707],[1264896000000, 1.171707]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });