$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1231200000000,5.23247],[1231286400000,5.20596],[1231372800000,5.20596],[1231459200000,5.19552],[1231545600000,5.20279],[1231632000000,5.20279],[1231718400000,5.20279],[1231804800000,5.18312],[1231891200000,5.16945],[1231977600000,5.15826],[1232064000000,5.14106],[1232150400000,5.18149],[1232236800000,null],[1232323200000,5.18149],[1232409600000,5.15419],[1232496000000,5.10072],[1232582400000,5.11932],[1232668800000,5.14602],[1232755200000,5.10951],[1232841600000,5.10951],[1232928000000,5.10951],[1233014400000,5.13676],[1233100800000,5.12322],[1233187200000,5.13876],[1233273600000,5.11785],[1233360000000,5.10096],[1233446400000,5.10096],[1233532800000,5.10096],[1233619200000,5.0792],[1233705600000,5.08518],[1233792000000,5.10044],[1233878400000,5.11168],[1233964800000,5.12292],[1234051200000,5.12292],[1234137600000,5.12292],[1234224000000,5.15341],[1234310400000,5.14298],[1234396800000,5.1044],[1234483200000,5.09771],[1234569600000,null],[1234656000000,null],[1234742400000,5.10691],[1234828800000,5.07463],[1234915200000,5.04704],[1235001600000,5.035],[1235088000000,5.04557],[1235174400000,5.00804],[1235260800000,5.00804],[1235347200000,5.00804],[1235433600000,5.044],[1235520000000,5.03768],[1235606400000,5.04359],[1235692800000,5.01306],[1235779200000,4.9777],[1235865600000,4.9777],[1235952000000,4.9777],[1236038400000,4.95171],[1236124800000,4.96857],[1236211200000,4.97215],[1236297600000,4.94975],[1236384000000,4.98245],[1236470400000,4.98245],[1236556800000,4.98245],[1236643200000,4.98245],[1236729600000,null],[1236816000000,5.02307],[1236902400000,5.03357],[1236988800000,4.99364],[1237075200000,4.99364],[1237161600000,4.99364],[1237248000000,5.02821],[1237334400000,5.02311],[1237420800000,5.05404],[1237507200000,5.11276],[1237593600000,5.08046],[1237680000000,5.08046],[1237766400000,5.08046],[1237852800000,5.09426],[1237939200000,5.09149],[1238025600000,5.09932],[1238112000000,5.14885],[1238198400000,5.07795],[1238284800000,5.07795],[1238371200000,5.07795],[1238457600000,5.06538],[1238544000000,5.06433],[1238630400000,5.05898],[1238716800000,5.11932],[1238803200000,5.11669],[1238889600000,5.11669],[1238976000000,5.11669],[1239062400000,5.11514],[1239148800000,5.0869],[1239235200000,5.07769],[1239321600000,5.0819],[1239408000000,5.0819],[1239494400000,5.0819],[1239580800000,5.0819],[1239667200000,5.0819],[1239753600000,5.13591],[1239840000000,5.12025],[1239926400000,5.14295],[1240012800000,5.12914],[1240099200000,5.12914],[1240185600000,5.12914],[1240272000000,5.12914],[1240358400000,5.10832],[1240444800000,5.11005],[1240531200000,5.12836],[1240617600000,5.17374],[1240704000000,5.17374],[1240790400000,5.17374],[1240876800000,5.14654],[1240963200000,5.12912],[1241049600000,5.18308],[1241136000000,5.20986],[1241222400000,5.20986],[1241308800000,null],[1241395200000,5.20986],[1241481600000,5.20986],[1241568000000,5.23528],[1241654400000,5.22006],[1241740800000,5.2628],[1241827200000,5.23593],[1241913600000,5.23593],[1242000000000,5.23593],[1242086400000,5.23593],[1242172800000,5.25775],[1242259200000,5.20875],[1242345600000,5.19821],[1242432000000,5.19018],[1242518400000,5.19018],[1242604800000,5.19018],[1242691200000,5.19331],[1242777600000,5.20912],[1242864000000,5.21479],[1242950400000,5.22187],[1243036800000,5.2791],[1243123200000,5.2791],[1243209600000,5.2791],[1243296000000,5.26875],[1243382400000,5.2445],[1243468800000,5.24627],[1243555200000,5.24005],[1243641600000,5.27792],[1243728000000,5.27792],[1243814400000,5.27792],[1243900800000,5.2907],[1243987200000,5.29163],[1244073600000,5.28371],[1244160000000,5.25944],[1244246400000,5.2564],[1244332800000,5.2564],[1244419200000,5.2564],[1244505600000,5.2564],[1244592000000,5.21832],[1244678400000,5.25262],[1244764800000,5.23789],[1244851200000,5.24093],[1244937600000,5.24093],[1245024000000,5.24093],[1245110400000,5.22129],[1245196800000,5.22524],[1245283200000,5.22118],[1245369600000,5.22542],[1245456000000,5.23416],[1245542400000,5.23416],[1245628800000,5.23416],[1245715200000,5.21735],[1245801600000,5.22278],[1245888000000,5.24239],[1245974400000,5.22921],[1246060800000,5.24846],[1246147200000,5.24846],[1246233600000,5.24846],[1246320000000,5.24846],[1246406400000,5.28305],[1246492800000,5.28056],[1246579200000,5.26632],[1246665600000,5.2573],[1246752000000,5.2573],[1246838400000,5.2573],[1246924800000,5.23766],[1247011200000,5.23825],[1247097600000,5.21518],[1247184000000,5.22527],[1247270400000,5.21306],[1247356800000,5.21306],[1247443200000,5.21306],[1247529600000,5.20192],[1247616000000,5.22941],[1247702400000,5.25487],[1247788800000,5.2661],[1247875200000,5.27496],[1247961600000,5.27496],[1248048000000,5.27496],[1248134400000,5.31668],[1248220800000,5.31716],[1248307200000,5.30998],[1248393600000,5.31783],[1248480000000,5.32365],[1248566400000,5.32365],[1248652800000,5.32365],[1248739200000,5.34193],[1248825600000,5.33846],[1248912000000,5.33586],[1248998400000,5.33011],[1249084800000,5.3418],[1249171200000,5.3418],[1249257600000,5.3418],[1249344000000,5.35953],[1249430400000,5.3579],[1249516800000,5.36058],[1249603200000,5.36159],[1249689600000,5.36181],[1249776000000,5.36181],[1249862400000,5.36181],[1249948800000,5.34969],[1250035200000,5.34338],[1250121600000,5.34728],[1250208000000,5.37679],[1250294400000,5.38229],[1250380800000,5.38229],[1250467200000,5.38229],[1250553600000,5.37531],[1250640000000,5.39879],[1250726400000,5.40407],[1250812800000,5.44684],[1250899200000,5.51795],[1250985600000,5.51795],[1251072000000,5.51795],[1251158400000,5.51795],[1251244800000,5.52245],[1251331200000,5.53493],[1251417600000,5.53389],[1251504000000,5.55118],[1251590400000,5.55118],[1251676800000,5.55118],[1251763200000,5.53437],[1251849600000,5.53312],[1251936000000,5.53185],[1252022400000,5.55116],[1252108800000,5.55757],[1252195200000,5.55757],[1252281600000,5.55757],[1252368000000,5.5789],[1252454400000,5.6065],[1252540800000,5.6094],[1252627200000,5.6046],[1252713600000,5.62423],[1252800000000,5.62423],[1252886400000,5.62423],[1252972800000,5.61143],[1253059200000,5.62365],[1253145600000,5.66773],[1253232000000,5.65436],[1253318400000,5.65955],[1253404800000,5.65955],[1253491200000,5.65955],[1253577600000,5.64574],[1253664000000,5.67227],[1253750400000,5.66907],[1253836800000,5.67147],[1253923200000,5.65064],[1254009600000,5.65064],[1254096000000,5.65064],[1254182400000,5.6441],[1254268800000,5.64592],[1254355200000,5.67457],[1254441600000,5.66853],[1254528000000,5.65716],[1254614400000,5.65716],[1254700800000,5.65716],[1254787200000,5.67632],[1254873600000,5.7125],[1254960000000,5.71854],[1255046400000,5.7591],[1255132800000,5.75375],[1255219200000,5.75375],[1255305600000,5.75375],[1255392000000,5.73197],[1255478400000,5.73431],[1255564800000,5.74274],[1255651200000,5.73073],[1255737600000,5.70783],[1255824000000,5.70783],[1255910400000,5.70783],[1255996800000,5.72471],[1256083200000,5.73982],[1256169600000,5.72474],[1256256000000,5.73232],[1256342400000,5.74015],[1256428800000,5.74015],[1256515200000,5.74015],[1256601600000,5.74035],[1256688000000,5.72978],[1256774400000,5.71557],[1256860800000,5.7218],[1256947200000,5.71618],[1257033600000,5.71618],[1257120000000,5.71618],[1257206400000,5.7154],[1257292800000,5.71594],[1257379200000,5.73802],[1257465600000,5.74451],[1257552000000,5.7393],[1257638400000,5.7393],[1257724800000,5.7393],[1257811200000,5.76329],[1257897600000,5.75228],[1257984000000,5.76396],[1258070400000,5.75984],[1258156800000,5.76689],[1258243200000,5.76689],[1258329600000,5.76689],[1258416000000,5.76953],[1258502400000,5.76075],[1258588800000,5.77614],[1258675200000,5.74697],[1258761600000,5.74732],[1258848000000,5.74732],[1258934400000,5.74732],[1259020800000,5.77137],[1259107200000,5.7673],[1259193600000,5.78471],[1259280000000,5.77527],[1259366400000,5.75026],[1259452800000,5.75026],[1259539200000,5.75026],[1259625600000,5.77232],[1259712000000,5.78375],[1259798400000,5.7886],[1259884800000,5.79474],[1259971200000,5.78157],[1260057600000,5.78157],[1260144000000,5.78157],[1260230400000,5.73438],[1260316800000,5.73471],[1260403200000,5.74611],[1260489600000,5.74616],[1260576000000,5.74785],[1260662400000,5.74785],[1260748800000,5.74785],[1260835200000,5.73196],[1260921600000,5.71603],[1261008000000,5.71037],[1261094400000,5.6799],[1261180800000,5.68431],[1261267200000,5.68431],[1261353600000,5.68431],[1261440000000,5.68161],[1261526400000,5.66793],[1261612800000,5.64746],[1261699200000,5.67149],[1261785600000,5.67113],[1261872000000,5.67113],[1261958400000,5.67113],[1262044800000,5.66429],[1262131200000,5.68088]], 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, 5.157179],[1231977600000, 5.157179],[1234656000000, 5.072885],[1237075200000, 5.031919],[1239753600000, 5.117476],[1242345600000, 5.232278],[1245024000000, 5.245393],[1247616000000, 5.274630],[1250294400000, 5.421163],[1252972800000, 5.617720],[1255564800000, 5.718428],[1258243200000, 5.751632],[1260835200000, 5.719094]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });