$(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: [[1385856000000,1.31145],[1385942400000,1.31145],[1386028800000,1.31177],[1386115200000,1.31205],[1386201600000,1.31226],[1386288000000,1.31211],[1386374400000,1.31394],[1386460800000,1.31394],[1386547200000,1.31394],[1386633600000,1.31621],[1386720000000,1.31643],[1386806400000,1.31682],[1386892800000,1.31585],[1386979200000,1.31611],[1387065600000,1.31611],[1387152000000,1.31611],[1387238400000,1.31632],[1387324800000,1.31648],[1387411200000,1.31638],[1387497600000,1.31597],[1387584000000,1.31675],[1387670400000,1.31675],[1387756800000,1.31675],[1387843200000,1.31712],[1387929600000,1.3165],[1388016000000,1.3165],[1388102400000,1.3165],[1388188800000,1.31696],[1388275200000,1.31696],[1388361600000,1.31696],[1388448000000,1.31696]], 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: [[1385856000000, 1.311451],[1385856000000, 1.311451],[1385942400000, 1.311451],[1386028800000, 1.311767],[1386115200000, 1.312051],[1386201600000, 1.312262],[1386288000000, 1.312106],[1386374400000, 1.313940],[1386460800000, 1.313940],[1386547200000, 1.313940],[1386633600000, 1.316212],[1386720000000, 1.316433],[1386806400000, 1.316815],[1386892800000, 1.315848],[1386979200000, 1.316107],[1387065600000, 1.316107],[1387152000000, 1.316107],[1387238400000, 1.316321],[1387324800000, 1.316479],[1387411200000, 1.316385],[1387497600000, 1.315974],[1387584000000, 1.316754],[1387670400000, 1.316754],[1387756800000, 1.316754],[1387843200000, 1.317123],[1387929600000, 1.316501],[1388016000000, 1.316501],[1388102400000, 1.316501],[1388188800000, 1.316961],[1388275200000, 1.316961],[1388361600000, 1.316961],[1388448000000, 1.316961]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });