$(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: [[1180656000000,9.9901],[1180742400000,9.98922],[1180828800000,9.98922],[1180915200000,9.98922],[1181001600000,10.0426],[1181088000000,10.0747],[1181174400000,10.0605],[1181260800000,10.0182],[1181347200000,9.93039],[1181433600000,9.93039],[1181520000000,9.93039],[1181606400000,null],[1181692800000,9.96927],[1181779200000,9.94801],[1181865600000,null],[1181952000000,null],[1182038400000,9.94684],[1182124800000,9.94684],[1182211200000,10.0089],[1182297600000,10.0326],[1182384000000,null],[1182470400000,10.0662],[1182556800000,10.085],[1182643200000,10.085],[1182729600000,10.085],[1182816000000,10.0933],[1182902400000,10.0977],[1182988800000,10.0842],[1183075200000,10.0842],[1183161600000,10.0842]], 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: [[1180656000000, 9.990096],[1180656000000, 9.990096],[1180742400000, 9.989223],[1180828800000, 9.989223],[1180915200000, 9.989223],[1181001600000, 10.042643],[1181088000000, 10.074687],[1181174400000, 10.060541],[1181260800000, 10.018189],[1181347200000, 9.930390],[1181433600000, 9.930390],[1181520000000, 9.930390],[1181692800000, 9.969268],[1181779200000, 9.948013],[1182038400000, 9.946845],[1182124800000, 9.946845],[1182211200000, 10.008901],[1182297600000, 10.032632],[1182470400000, 10.066188],[1182556800000, 10.084994],[1182643200000, 10.084994],[1182729600000, 10.084994],[1182816000000, 10.093252],[1182902400000, 10.097749],[1182988800000, 10.084241],[1183075200000, 10.084241],[1183161600000, 10.084241]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });