$(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: [[1283299200000,12.1246],[1283385600000,12.1463],[1283472000000,12.1566],[1283558400000,12.1812],[1283644800000,12.1812],[1283731200000,12.1812],[1283817600000,12.1456],[1283904000000,12.1191],[1283990400000,12.2146],[1284076800000,12.1764],[1284163200000,12.2215],[1284249600000,12.2215],[1284336000000,12.2215],[1284422400000,12.1791],[1284508800000,12.1957],[1284595200000,12.3115],[1284681600000,12.3707],[1284768000000,12.3751],[1284854400000,12.3751],[1284940800000,12.3751],[1285027200000,12.3507],[1285113600000,12.2893],[1285200000000,12.3737],[1285286400000,12.4007],[1285372800000,12.4297],[1285459200000,12.4297],[1285545600000,12.4297],[1285632000000,12.5412],[1285718400000,12.5335],[1285804800000,12.4983]], 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: [[1283299200000, 12.124558],[1283299200000, 12.124558],[1283385600000, 12.146331],[1283472000000, 12.156590],[1283558400000, 12.181210],[1283644800000, 12.181210],[1283731200000, 12.181210],[1283817600000, 12.145561],[1283904000000, 12.119060],[1283990400000, 12.214636],[1284076800000, 12.176406],[1284163200000, 12.221502],[1284249600000, 12.221502],[1284336000000, 12.221502],[1284422400000, 12.179123],[1284508800000, 12.195717],[1284595200000, 12.311489],[1284681600000, 12.370676],[1284768000000, 12.375083],[1284854400000, 12.375083],[1284940800000, 12.375083],[1285027200000, 12.350665],[1285113600000, 12.289302],[1285200000000, 12.373692],[1285286400000, 12.400651],[1285372800000, 12.429653],[1285459200000, 12.429653],[1285545600000, 12.429653],[1285632000000, 12.541185],[1285718400000, 12.533472],[1285804800000, 12.498335]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });