$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1385856000000,13.0643],[1385942400000,13.0643],[1386028800000,13.0977],[1386115200000,13.1216],[1386201600000,13.0893],[1386288000000,13.0707],[1386374400000,13.0644],[1386460800000,13.0644],[1386547200000,13.0644],[1386633600000,13.0938],[1386720000000,13.1393],[1386806400000,13.0961],[1386892800000,13.1123],[1386979200000,13.0046],[1387065600000,13.0046],[1387152000000,13.0046],[1387238400000,13.0487],[1387324800000,12.9962],[1387411200000,13.0813],[1387497600000,13.0842],[1387584000000,13.0743],[1387670400000,13.0743],[1387756800000,13.0743],[1387843200000,13.0739],[1387929600000,13.0828],[1388016000000,13.0828],[1388102400000,13.0828],[1388188800000,13.1973],[1388275200000,13.1973],[1388361600000,13.1973],[1388448000000,13.1973]], 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, 13.064272],[1385856000000, 13.064272],[1385942400000, 13.064272],[1386028800000, 13.097663],[1386115200000, 13.121624],[1386201600000, 13.089260],[1386288000000, 13.070714],[1386374400000, 13.064414],[1386460800000, 13.064414],[1386547200000, 13.064414],[1386633600000, 13.093768],[1386720000000, 13.139309],[1386806400000, 13.096058],[1386892800000, 13.112251],[1386979200000, 13.004612],[1387065600000, 13.004612],[1387152000000, 13.004612],[1387238400000, 13.048713],[1387324800000, 12.996187],[1387411200000, 13.081271],[1387497600000, 13.084241],[1387584000000, 13.074319],[1387670400000, 13.074319],[1387756800000, 13.074319],[1387843200000, 13.073903],[1387929600000, 13.082809],[1388016000000, 13.082809],[1388102400000, 13.082809],[1388188800000, 13.197311],[1388275200000, 13.197311],[1388361600000, 13.197311],[1388448000000, 13.197311]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });