$(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: [[1480550400000,31.8845],[1480636800000,32.3976],[1480723200000,32.6933],[1480809600000,32.6933],[1480896000000,32.6933],[1480982400000,33.2212],[1481068800000,33.2656],[1481155200000,32.8099],[1481241600000,32.6329],[1481328000000,32.5562],[1481414400000,32.5562],[1481500800000,32.5562],[1481587200000,33.0524],[1481673600000,33.1802],[1481760000000,33.3499],[1481846400000,32.7764],[1481932800000,32.7665],[1482019200000,32.7665],[1482105600000,32.7665],[1482192000000,32.6954],[1482278400000,32.6681],[1482364800000,32.6947],[1482451200000,32.4332],[1482537600000,32.1751],[1482624000000,32.1751],[1482710400000,32.1751],[1482796800000,32.2961],[1482883200000,32.2961],[1482969600000,32.8583],[1483056000000,33.3208],[1483142400000,33.3208]], 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: [[1480550400000, 31.884510],[1480550400000, 31.884510],[1480636800000, 32.397589],[1480723200000, 32.693310],[1480809600000, 32.693310],[1480896000000, 32.693310],[1480982400000, 33.221209],[1481068800000, 33.265565],[1481155200000, 32.809885],[1481241600000, 32.632924],[1481328000000, 32.556158],[1481414400000, 32.556158],[1481500800000, 32.556158],[1481587200000, 33.052358],[1481673600000, 33.180167],[1481760000000, 33.349944],[1481846400000, 32.776403],[1481932800000, 32.766483],[1482019200000, 32.766483],[1482105600000, 32.766483],[1482192000000, 32.695444],[1482278400000, 32.668087],[1482364800000, 32.694732],[1482451200000, 32.433235],[1482537600000, 32.175079],[1482624000000, 32.175079],[1482710400000, 32.175079],[1482796800000, 32.296117],[1482883200000, 32.296117],[1482969600000, 32.858253],[1483056000000, 33.320755],[1483142400000, 33.320755]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });