$(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: [[1231200000000,11.1756],[1231286400000,11.1875],[1231372800000,11.1875],[1231459200000,11.7375],[1231545600000,11.7755],[1231632000000,11.7755],[1231718400000,11.7755],[1231804800000,11.5156],[1231891200000,11.2069],[1231977600000,11.1672],[1232064000000,11.2374],[1232150400000,11.4898],[1232236800000,null],[1232323200000,11.4898],[1232409600000,11.2193],[1232496000000,10.6928],[1232582400000,10.591],[1232668800000,10.5896],[1232755200000,10.4955],[1232841600000,10.4955],[1232928000000,10.4955],[1233014400000,10.6464],[1233100800000,10.8469],[1233187200000,11.0113],[1233273600000,11.0062],[1233360000000,10.9911],[1233446400000,10.9911],[1233532800000,10.9911],[1233619200000,10.8764],[1233705600000,10.9577],[1233792000000,11.0885],[1233878400000,11.2509],[1233964800000,11.3174],[1234051200000,11.3174],[1234137600000,11.3174],[1234224000000,11.4996],[1234310400000,11.3836],[1234396800000,11.0692],[1234483200000,10.9429],[1234569600000,null],[1234656000000,null],[1234742400000,11.1675],[1234828800000,10.9883],[1234915200000,10.9911],[1235001600000,10.9642],[1235088000000,11.0879],[1235174400000,11.0046],[1235260800000,11.0046],[1235347200000,11.0046],[1235433600000,11.2238],[1235520000000,11.1714],[1235606400000,11.0898],[1235692800000,11.0425],[1235779200000,10.9012],[1235865600000,10.9012],[1235952000000,10.9012],[1236038400000,10.8574],[1236124800000,10.844],[1236211200000,10.8598],[1236297600000,10.8585],[1236384000000,10.9513],[1236470400000,10.9513],[1236556800000,10.9513],[1236643200000,10.9513],[1236729600000,null],[1236816000000,10.6377],[1236902400000,10.5739],[1236988800000,10.7775],[1237075200000,10.7775],[1237161600000,10.7775],[1237248000000,10.9091],[1237334400000,10.7559],[1237420800000,10.7657],[1237507200000,11.1926],[1237593600000,11.1046],[1237680000000,11.1046],[1237766400000,11.1046],[1237852800000,11.2321],[1237939200000,11.2974],[1238025600000,11.242],[1238112000000,11.2467],[1238198400000,11.0255],[1238284800000,11.0255],[1238371200000,11.0255],[1238457600000,10.9338],[1238544000000,11.009],[1238630400000,11.0791],[1238716800000,11.2957],[1238803200000,11.3684],[1238889600000,11.3684],[1238976000000,11.3684],[1239062400000,11.4802],[1239148800000,11.2771],[1239235200000,11.328],[1239321600000,11.3005],[1239408000000,11.3005],[1239494400000,11.3005],[1239580800000,11.3005],[1239667200000,11.3005],[1239753600000,11.4667],[1239840000000,11.4989],[1239926400000,11.4735],[1240012800000,11.3895],[1240099200000,11.3895],[1240185600000,11.3895],[1240272000000,11.3895],[1240358400000,11.206],[1240444800000,11.224],[1240531200000,11.2048],[1240617600000,11.2457],[1240704000000,11.2457],[1240790400000,11.2457],[1240876800000,11.2198],[1240963200000,11.2359],[1241049600000,11.3656],[1241136000000,11.442],[1241222400000,11.442],[1241308800000,null],[1241395200000,11.442],[1241481600000,11.442],[1241568000000,11.6495],[1241654400000,11.5765],[1241740800000,11.6541],[1241827200000,11.5664],[1241913600000,11.5664],[1242000000000,11.5664],[1242086400000,11.5664],[1242172800000,11.7249],[1242259200000,11.5446],[1242345600000,11.5129],[1242432000000,11.5705],[1242518400000,11.5705],[1242604800000,11.5705],[1242691200000,11.6536],[1242777600000,11.796],[1242864000000,11.8133],[1242950400000,11.9319],[1243036800000,12.1183],[1243123200000,12.1183],[1243209600000,12.1183],[1243296000000,12.1206],[1243382400000,12.0965],[1243468800000,12.1654],[1243555200000,12.134],[1243641600000,12.3045],[1243728000000,12.3045],[1243814400000,12.3045],[1243900800000,12.4679],[1243987200000,12.5257],[1244073600000,12.5759],[1244160000000,12.3481],[1244246400000,12.2741],[1244332800000,12.2741],[1244419200000,12.2741],[1244505600000,12.2741],[1244592000000,12.3065],[1244678400000,12.5033],[1244764800000,12.4966],[1244851200000,12.4842],[1244937600000,12.4842],[1245024000000,12.4842],[1245110400000,12.4431],[1245196800000,12.5308],[1245283200000,12.3735],[1245369600000,12.354],[1245456000000,12.5264],[1245542400000,12.5264],[1245628800000,12.5264],[1245715200000,12.5172],[1245801600000,12.4089],[1245888000000,12.5927],[1245974400000,12.4129],[1246060800000,12.59],[1246147200000,12.59],[1246233600000,12.59],[1246320000000,12.59],[1246406400000,12.6735],[1246492800000,12.5772],[1246579200000,12.5174],[1246665600000,12.4959],[1246752000000,12.4959],[1246838400000,12.4959],[1246924800000,12.3248],[1247011200000,12.3831],[1247097600000,12.2537],[1247184000000,12.391],[1247270400000,12.3528],[1247356800000,12.3528],[1247443200000,12.3528],[1247529600000,12.2783],[1247616000000,12.4425],[1247702400000,12.5367],[1247788800000,12.5667],[1247875200000,12.4592],[1247961600000,12.4592],[1248048000000,12.4592],[1248134400000,12.6652],[1248220800000,12.5915],[1248307200000,12.575],[1248393600000,12.6537],[1248480000000,12.5797],[1248566400000,12.5797],[1248652800000,12.5797],[1248739200000,12.6835],[1248825600000,12.6911],[1248912000000,12.6119],[1248998400000,12.6912],[1249084800000,12.7221],[1249171200000,12.7221],[1249257600000,12.7221],[1249344000000,12.9463],[1249430400000,13.0227],[1249516800000,13.0718],[1249603200000,12.9775],[1249689600000,12.9104],[1249776000000,12.9104],[1249862400000,12.9104],[1249948800000,12.8285],[1250035200000,12.754],[1250121600000,12.7572],[1250208000000,12.8989],[1250294400000,12.886],[1250380800000,12.886],[1250467200000,12.886],[1250553600000,12.7291],[1250640000000,12.8888],[1250726400000,12.8661],[1250812800000,13.0004],[1250899200000,13.1431],[1250985600000,13.1431],[1251072000000,13.1431],[1251158400000,13.1431],[1251244800000,13.0503],[1251331200000,12.9844],[1251417600000,12.9472],[1251504000000,13.064],[1251590400000,13.064],[1251676800000,13.064],[1251763200000,12.9369],[1251849600000,12.9581],[1251936000000,12.9753],[1252022400000,13.0862],[1252108800000,13.0762],[1252195200000,13.0762],[1252281600000,13.0762],[1252368000000,13.116],[1252454400000,13.2479],[1252540800000,13.2041],[1252627200000,13.2776],[1252713600000,13.3555],[1252800000000,13.3555],[1252886400000,13.3555],[1252972800000,13.2472],[1253059200000,13.1863],[1253145600000,13.1988],[1253232000000,13.2276],[1253318400000,13.0774],[1253404800000,13.0774],[1253491200000,13.0774],[1253577600000,12.9455],[1253664000000,13.0806],[1253750400000,13.1604],[1253836800000,12.9846],[1253923200000,12.7847],[1254009600000,12.7847],[1254096000000,12.7847],[1254182400000,12.7184],[1254268800000,12.781],[1254355200000,12.8893],[1254441600000,12.784],[1254528000000,12.6953],[1254614400000,12.6953],[1254700800000,12.6953],[1254787200000,12.7657],[1254873600000,12.734],[1254960000000,12.7256],[1255046400000,12.8534],[1255132800000,12.8025],[1255219200000,12.8025],[1255305600000,12.8025],[1255392000000,12.672],[1255478400000,12.6493],[1255564800000,12.7942],[1255651200000,12.9676],[1255737600000,12.9976],[1255824000000,12.9976],[1255910400000,12.9976],[1255996800000,13.0041],[1256083200000,13.1039],[1256169600000,13.25],[1256256000000,13.2636],[1256342400000,13.0975],[1256428800000,13.0975],[1256515200000,13.0975],[1256601600000,13.0666],[1256688000000,13.1209],[1256774400000,13.0719],[1256860800000,13.1815],[1256947200000,13.236],[1257033600000,13.236],[1257120000000,13.236],[1257206400000,13.0778],[1257292800000,13.0686],[1257379200000,13.2393],[1257465600000,13.3074],[1257552000000,13.258],[1257638400000,13.258],[1257724800000,13.258],[1257811200000,13.3975],[1257897600000,13.3072],[1257984000000,13.3096],[1258070400000,13.2285],[1258156800000,13.3391],[1258243200000,13.3391],[1258329600000,13.3391],[1258416000000,13.3676],[1258502400000,13.4111],[1258588800000,13.4367],[1258675200000,13.2858],[1258761600000,13.1649],[1258848000000,13.1649],[1258934400000,13.1649],[1259020800000,13.2772],[1259107200000,13.2435],[1259193600000,13.336],[1259280000000,13.2033],[1259366400000,13.0964],[1259452800000,13.0964],[1259539200000,13.0964],[1259625600000,13.1645],[1259712000000,13.2362],[1259798400000,13.3337],[1259884800000,13.2881],[1259971200000,13.2961],[1260057600000,13.2961],[1260144000000,13.2961],[1260230400000,13.0445],[1260316800000,13.0058],[1260403200000,13.0383],[1260489600000,13.0091],[1260576000000,13.0147],[1260662400000,13.0147],[1260748800000,13.0147],[1260835200000,12.9793],[1260921600000,12.9395],[1261008000000,13.047],[1261094400000,12.845],[1261180800000,12.8823],[1261267200000,12.8823],[1261353600000,12.8823],[1261440000000,12.8407],[1261526400000,12.7417],[1261612800000,12.7139],[1261699200000,12.7325],[1261785600000,12.7317],[1261872000000,12.7317],[1261958400000,12.7317],[1262044800000,12.7282],[1262131200000,12.7406]], 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: [[1231977600000, 11.112099],[1231977600000, 11.112099],[1234656000000, 11.101713],[1237075200000, 10.951226],[1239753600000, 11.308914],[1242345600000, 11.769435],[1245024000000, 12.454996],[1247616000000, 12.508732],[1250294400000, 12.936871],[1252972800000, 13.073804],[1255564800000, 12.932651],[1258243200000, 13.251467],[1260835200000, 12.963465]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });