$(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: [[1254355200000,1.17252],[1254441600000,1.17325],[1254528000000,1.1734],[1254614400000,1.1734],[1254700800000,1.1734],[1254787200000,1.17341],[1254873600000,1.1734],[1254960000000,1.1734],[1255046400000,1.1734],[1255132800000,1.17352],[1255219200000,1.17352],[1255305600000,1.17352],[1255392000000,1.1739],[1255478400000,1.17281],[1255564800000,1.17161],[1255651200000,1.1686],[1255737600000,1.16745],[1255824000000,1.16745],[1255910400000,1.16745],[1255996800000,1.16747],[1256083200000,1.16897],[1256169600000,1.17074],[1256256000000,1.17217],[1256342400000,1.17127],[1256428800000,1.17127],[1256515200000,1.17127],[1256601600000,1.1715],[1256688000000,1.17249],[1256774400000,1.17272],[1256860800000,1.17165],[1256947200000,1.17071]], 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: [[1254355200000, 1.172518],[1254355200000, 1.172518],[1254441600000, 1.173251],[1254528000000, 1.173402],[1254614400000, 1.173402],[1254700800000, 1.173402],[1254787200000, 1.173405],[1254873600000, 1.173400],[1254960000000, 1.173399],[1255046400000, 1.173399],[1255132800000, 1.173519],[1255219200000, 1.173519],[1255305600000, 1.173519],[1255392000000, 1.173896],[1255478400000, 1.172813],[1255564800000, 1.171612],[1255651200000, 1.168595],[1255737600000, 1.167454],[1255824000000, 1.167454],[1255910400000, 1.167454],[1255996800000, 1.167471],[1256083200000, 1.168968],[1256169600000, 1.170743],[1256256000000, 1.172172],[1256342400000, 1.171268],[1256428800000, 1.171268],[1256515200000, 1.171268],[1256601600000, 1.171502],[1256688000000, 1.172490],[1256774400000, 1.172724],[1256860800000, 1.171652],[1256947200000, 1.170707]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });