$(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: [[1114905600000,9.65799],[1114992000000,9.65799],[1115078400000,9.65799],[1115164800000,9.65799],[1115251200000,9.59482],[1115337600000,9.61036],[1115424000000,9.58615],[1115510400000,9.58615],[1115596800000,9.58615],[1115683200000,9.58615],[1115769600000,9.50684],[1115856000000,9.50944],[1115942400000,9.43854],[1116028800000,9.38128],[1116115200000,9.38128],[1116201600000,9.38128],[1116288000000,9.27512],[1116374400000,9.28374],[1116460800000,9.25925],[1116547200000,9.29018],[1116633600000,9.26513],[1116720000000,9.26513],[1116806400000,9.26513],[1116892800000,9.23319],[1116979200000,9.26574],[1117065600000,9.22413],[1117152000000,9.20005],[1117238400000,9.22465],[1117324800000,9.22465],[1117411200000,9.22465],[1117497600000,9.19536]], 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: [[1114905600000, 9.657985],[1114905600000, 9.657985],[1114992000000, 9.657985],[1115078400000, 9.657985],[1115164800000, 9.657985],[1115251200000, 9.594815],[1115337600000, 9.610357],[1115424000000, 9.586152],[1115510400000, 9.586152],[1115596800000, 9.586152],[1115683200000, 9.586152],[1115769600000, 9.506839],[1115856000000, 9.509443],[1115942400000, 9.438541],[1116028800000, 9.381276],[1116115200000, 9.381276],[1116201600000, 9.381276],[1116288000000, 9.275120],[1116374400000, 9.283742],[1116460800000, 9.259250],[1116547200000, 9.290178],[1116633600000, 9.265131],[1116720000000, 9.265131],[1116806400000, 9.265131],[1116892800000, 9.233192],[1116979200000, 9.265738],[1117065600000, 9.224133],[1117152000000, 9.200051],[1117238400000, 9.224647],[1117324800000, 9.224647],[1117411200000, 9.224647],[1117497600000, 9.195357]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });