$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1231200000000,1.11316],[1231286400000,1.09383],[1231372800000,1.09383],[1231459200000,1.10573],[1231545600000,1.10942],[1231632000000,1.10942],[1231718400000,1.10942],[1231804800000,1.09565],[1231891200000,1.07975],[1231977600000,1.07552],[1232064000000,1.06873],[1232150400000,1.10913],[1232236800000,null],[1232323200000,1.10913],[1232409600000,1.11295],[1232496000000,1.08319],[1232582400000,1.09775],[1232668800000,1.10716],[1232755200000,1.09541],[1232841600000,1.09541],[1232928000000,1.09541],[1233014400000,1.12468],[1233100800000,1.14009],[1233187200000,1.14889],[1233273600000,1.14721],[1233360000000,1.11036],[1233446400000,1.11036],[1233532800000,1.11036],[1233619200000,1.09883],[1233705600000,1.09456],[1233792000000,1.10997],[1233878400000,1.12522],[1233964800000,1.1231],[1234051200000,1.1231],[1234137600000,1.1231],[1234224000000,1.15633],[1234310400000,1.15549],[1234396800000,1.1464],[1234483200000,1.12091],[1234569600000,null],[1234656000000,null],[1234742400000,1.13244],[1234828800000,1.11986],[1234915200000,1.10623],[1235001600000,1.09469],[1235088000000,1.12719],[1235174400000,1.10807],[1235260800000,1.10807],[1235347200000,1.10807],[1235433600000,1.13023],[1235520000000,1.12507],[1235606400000,1.12647],[1235692800000,1.12123],[1235779200000,1.09564],[1235865600000,1.09564],[1235952000000,1.09564],[1236038400000,1.07431],[1236124800000,1.07779],[1236211200000,1.08136],[1236297600000,1.08549],[1236384000000,1.08865],[1236470400000,1.08865],[1236556800000,1.08865],[1236643200000,1.08865],[1236729600000,null],[1236816000000,1.11472],[1236902400000,1.10685],[1236988800000,1.12624],[1237075200000,1.12624],[1237161600000,1.12624],[1237248000000,1.14573],[1237334400000,1.12839],[1237420800000,1.1477],[1237507200000,1.21766],[1237593600000,1.2061],[1237680000000,1.2061],[1237766400000,1.2061],[1237852800000,1.20906],[1237939200000,1.20424],[1238025600000,1.19053],[1238112000000,1.18825],[1238198400000,1.16331],[1238284800000,1.16331],[1238371200000,1.16331],[1238457600000,1.13491],[1238544000000,1.15266],[1238630400000,1.14794],[1238716800000,1.16544],[1238803200000,1.17502],[1238889600000,1.17502],[1238976000000,1.17502],[1239062400000,1.18292],[1239148800000,1.15869],[1239235200000,1.14522],[1239321600000,1.16231],[1239408000000,1.16231],[1239494400000,1.16231],[1239580800000,1.16231],[1239667200000,1.16231],[1239753600000,1.16324],[1239840000000,1.14736],[1239926400000,1.14982],[1240012800000,1.14989],[1240099200000,1.14989],[1240185600000,1.14989],[1240272000000,1.14989],[1240358400000,1.13232],[1240444800000,1.13797],[1240531200000,1.15633],[1240617600000,1.17246],[1240704000000,1.17246],[1240790400000,1.17246],[1240876800000,1.15329],[1240963200000,1.14147],[1241049600000,1.16981],[1241136000000,1.17161],[1241222400000,1.17161],[1241308800000,null],[1241395200000,1.17161],[1241481600000,1.17161],[1241568000000,1.18802],[1241654400000,1.17435],[1241740800000,1.1961],[1241827200000,1.19218],[1241913600000,1.19218],[1242000000000,1.19218],[1242086400000,1.19218],[1242172800000,1.19701],[1242259200000,1.17509],[1242345600000,1.17071],[1242432000000,1.1686],[1242518400000,1.1686],[1242604800000,1.1686],[1242691200000,1.17153],[1242777600000,1.18621],[1242864000000,1.18348],[1242950400000,1.18668],[1243036800000,1.19899],[1243123200000,1.19899],[1243209600000,1.19899],[1243296000000,1.20399],[1243382400000,1.18383],[1243468800000,1.19391],[1243555200000,1.178],[1243641600000,1.20973],[1243728000000,1.20973],[1243814400000,1.20973],[1243900800000,1.22839],[1243987200000,1.23537],[1244073600000,1.21192],[1244160000000,1.20479],[1244246400000,1.20305],[1244332800000,1.20305],[1244419200000,1.20305],[1244505600000,1.20305],[1244592000000,1.19178],[1244678400000,1.21357],[1244764800000,1.1926],[1244851200000,1.19973],[1244937600000,1.19973],[1245024000000,1.19973],[1245110400000,1.18374],[1245196800000,1.18563],[1245283200000,1.18241],[1245369600000,1.19374],[1245456000000,1.1924],[1245542400000,1.1924],[1245628800000,1.1924],[1245715200000,1.17364],[1245801600000,1.16923],[1245888000000,1.18715],[1245974400000,1.17168],[1246060800000,1.18979],[1246147200000,1.18979],[1246233600000,1.18979],[1246320000000,1.18979],[1246406400000,1.1975],[1246492800000,1.19918],[1246579200000,1.20069],[1246665600000,1.19336],[1246752000000,1.19336],[1246838400000,1.19336],[1246924800000,1.17231],[1247011200000,1.18108],[1247097600000,1.16766],[1247184000000,1.1752],[1247270400000,1.16674],[1247356800000,1.16674],[1247443200000,1.16674],[1247529600000,1.17476],[1247616000000,1.18091],[1247702400000,1.19209],[1247788800000,1.19936],[1247875200000,1.19842],[1247961600000,1.19842],[1248048000000,1.19842],[1248134400000,1.20923],[1248220800000,1.21716],[1248307200000,1.21915],[1248393600000,1.2217],[1248480000000,1.23099],[1248566400000,1.23099],[1248652800000,1.23099],[1248739200000,1.24702],[1248825600000,1.24826],[1248912000000,1.23565],[1248998400000,1.23648],[1249084800000,1.249],[1249171200000,1.249],[1249257600000,1.249],[1249344000000,1.26659],[1249430400000,1.26942],[1249516800000,1.27718],[1249603200000,1.27685],[1249689600000,1.26382],[1249776000000,1.26382],[1249862400000,1.26382],[1249948800000,1.25946],[1250035200000,1.24036],[1250121600000,1.25585],[1250208000000,1.28667],[1250294400000,1.28852],[1250380800000,1.28852],[1250467200000,1.28852],[1250553600000,1.25868],[1250640000000,1.2729],[1250726400000,1.2774],[1250812800000,1.30647],[1250899200000,1.32998],[1250985600000,1.32998],[1251072000000,1.32998],[1251158400000,1.32998],[1251244800000,1.32489],[1251331200000,1.32193],[1251417600000,1.31868],[1251504000000,1.32986],[1251590400000,1.32986],[1251676800000,1.32986],[1251763200000,1.32472],[1251849600000,1.32635],[1251936000000,1.30814],[1252022400000,1.3279],[1252108800000,1.32464],[1252195200000,1.32464],[1252281600000,1.32464],[1252368000000,1.33452],[1252454400000,1.35069],[1252540800000,1.34831],[1252627200000,1.34217],[1252713600000,1.3518],[1252800000000,1.3518],[1252886400000,1.3518],[1252972800000,1.34329],[1253059200000,1.35374],[1253145600000,1.36443],[1253232000000,1.36546],[1253318400000,1.36252],[1253404800000,1.36252],[1253491200000,1.36252],[1253577600000,1.35681],[1253664000000,1.37159],[1253750400000,1.38212],[1253836800000,1.38948],[1253923200000,1.38155],[1254009600000,1.38155],[1254096000000,1.38155],[1254182400000,1.3761],[1254268800000,1.36861],[1254355200000,1.38537],[1254441600000,1.37876],[1254528000000,1.37849],[1254614400000,1.37849],[1254700800000,1.37849],[1254787200000,1.38615],[1254873600000,1.40636],[1254960000000,1.40721],[1255046400000,1.41563],[1255132800000,1.42304],[1255219200000,1.42304],[1255305600000,1.42304],[1255392000000,1.42021],[1255478400000,1.42896],[1255564800000,1.43672],[1255651200000,1.42309],[1255737600000,1.41923],[1255824000000,1.41923],[1255910400000,1.41923],[1255996800000,1.42348],[1256083200000,1.43549],[1256169600000,1.43208],[1256256000000,1.442],[1256342400000,1.44257],[1256428800000,1.44257],[1256515200000,1.44257],[1256601600000,1.44296],[1256688000000,1.42045],[1256774400000,1.40943],[1256860800000,1.41115],[1256947200000,1.40972],[1257033600000,1.40972],[1257120000000,1.40972],[1257206400000,1.40132],[1257292800000,1.37939],[1257379200000,1.40149],[1257465600000,1.41221],[1257552000000,1.40849],[1257638400000,1.40849],[1257724800000,1.40849],[1257811200000,1.42202],[1257897600000,1.42635],[1257984000000,1.43747],[1258070400000,1.42192],[1258156800000,1.4213],[1258243200000,1.4213],[1258329600000,1.4213],[1258416000000,1.43481],[1258502400000,1.42385],[1258588800000,1.43103],[1258675200000,1.4151],[1258761600000,1.40501],[1258848000000,1.40501],[1258934400000,1.40501],[1259020800000,1.42782],[1259107200000,1.42783],[1259193600000,1.43106],[1259280000000,1.41508],[1259366400000,1.40201],[1259452800000,1.40201],[1259539200000,1.40201],[1259625600000,1.4097],[1259712000000,1.42007],[1259798400000,1.43186],[1259884800000,1.43155],[1259971200000,1.417],[1260057600000,1.417],[1260144000000,1.417],[1260230400000,1.39427],[1260316800000,1.38919],[1260403200000,1.39332],[1260489600000,1.3946],[1260576000000,1.39518],[1260662400000,1.39518],[1260748800000,1.39518],[1260835200000,1.38031],[1260921600000,1.36825],[1261008000000,1.38654],[1261094400000,1.36007],[1261180800000,1.36104],[1261267200000,1.36104],[1261353600000,1.36104],[1261440000000,1.37108],[1261526400000,1.3603],[1261612800000,1.36188],[1261699200000,1.37581],[1261785600000,1.37572],[1261872000000,1.37572],[1261958400000,1.37572],[1262044800000,1.37507],[1262131200000,1.38091]], 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, 1.105250],[1231977600000, 1.105250],[1234656000000, 1.119269],[1237075200000, 1.137994],[1239753600000, 1.158601],[1242345600000, 1.185544],[1245024000000, 1.196103],[1247616000000, 1.201417],[1250294400000, 1.287965],[1252972800000, 1.353198],[1255564800000, 1.416297],[1258243200000, 1.414620],[1260835200000, 1.387333]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });