$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1231200000000,0.976712],[1231286400000,0.971435],[1231372800000,0.971435],[1231459200000,0.978817],[1231545600000,0.982762],[1231632000000,0.982762],[1231718400000,0.982762],[1231804800000,0.958448],[1231891200000,0.934781],[1231977600000,0.926532],[1232064000000,0.916575],[1232150400000,0.949046],[1232236800000,null],[1232323200000,0.949046],[1232409600000,0.94096],[1232496000000,0.914284],[1232582400000,0.923171],[1232668800000,0.935193],[1232755200000,0.920263],[1232841600000,0.920263],[1232928000000,0.920263],[1233014400000,0.943613],[1233100800000,0.962655],[1233187200000,0.961911],[1233273600000,0.958361],[1233360000000,0.930184],[1233446400000,0.930184],[1233532800000,0.930184],[1233619200000,0.920264],[1233705600000,0.920296],[1233792000000,0.925071],[1233878400000,0.929594],[1233964800000,0.932556],[1234051200000,0.932556],[1234137600000,0.932556],[1234224000000,0.959632],[1234310400000,0.94906],[1234396800000,0.920939],[1234483200000,0.915412],[1234569600000,null],[1234656000000,null],[1234742400000,0.918869],[1234828800000,0.899849],[1234915200000,0.886152],[1235001600000,0.873084],[1235088000000,0.897616],[1235174400000,0.875575],[1235260800000,0.875575],[1235347200000,0.875575],[1235433600000,0.884999],[1235520000000,0.866448],[1235606400000,0.871409],[1235692800000,0.869639],[1235779200000,0.850117],[1235865600000,0.850117],[1235952000000,0.850117],[1236038400000,0.837883],[1236124800000,0.845738],[1236211200000,0.839362],[1236297600000,0.84192],[1236384000000,0.832088],[1236470400000,0.832088],[1236556800000,0.832088],[1236643200000,0.832088],[1236729600000,null],[1236816000000,0.875325],[1236902400000,0.877806],[1236988800000,0.89501],[1237075200000,0.89501],[1237161600000,0.89501],[1237248000000,0.914029],[1237334400000,0.903763],[1237420800000,0.922202],[1237507200000,0.968745],[1237593600000,0.943626],[1237680000000,0.943626],[1237766400000,0.943626],[1237852800000,0.942548],[1237939200000,0.952722],[1238025600000,0.94833],[1238112000000,0.963305],[1238198400000,0.939748],[1238284800000,0.939748],[1238371200000,0.939748],[1238457600000,0.926356],[1238544000000,0.936669],[1238630400000,0.933133],[1238716800000,0.952903],[1238803200000,0.959365],[1238889600000,0.959365],[1238976000000,0.959365],[1239062400000,0.96759],[1239148800000,0.938256],[1239235200000,0.934881],[1239321600000,0.941174],[1239408000000,0.941174],[1239494400000,0.941174],[1239580800000,0.941174],[1239667200000,0.941174],[1239753600000,0.942515],[1239840000000,0.933567],[1239926400000,0.929296],[1240012800000,0.910707],[1240099200000,0.910707],[1240185600000,0.910707],[1240272000000,0.910707],[1240358400000,0.890984],[1240444800000,0.903211],[1240531200000,0.920546],[1240617600000,0.940692],[1240704000000,0.940692],[1240790400000,0.940692],[1240876800000,0.942106],[1240963200000,0.930806],[1241049600000,0.949359],[1241136000000,0.956063],[1241222400000,0.956063],[1241308800000,null],[1241395200000,0.956063],[1241481600000,0.956063],[1241568000000,0.974856],[1241654400000,0.966272],[1241740800000,0.984094],[1241827200000,0.980043],[1241913600000,0.980043],[1242000000000,0.980043],[1242086400000,0.980043],[1242172800000,0.986181],[1242259200000,0.975152],[1242345600000,0.959962],[1242432000000,0.968634],[1242518400000,0.968634],[1242604800000,0.968634],[1242691200000,0.96977],[1242777600000,0.990729],[1242864000000,0.993799],[1242950400000,1.00388],[1243036800000,1.01537],[1243123200000,1.01537],[1243209600000,1.01537],[1243296000000,1.01888],[1243382400000,1.00398],[1243468800000,0.994103],[1243555200000,0.983355],[1243641600000,1.00682],[1243728000000,1.00682],[1243814400000,1.00682],[1243900800000,1.02129],[1243987200000,1.01878],[1244073600000,1.00324],[1244160000000,0.992393],[1244246400000,0.98777],[1244332800000,0.98777],[1244419200000,0.98777],[1244505600000,0.98777],[1244592000000,0.983651],[1244678400000,1.00019],[1244764800000,0.984108],[1244851200000,0.991028],[1244937600000,0.991028],[1245024000000,0.991028],[1245110400000,0.972983],[1245196800000,0.973547],[1245283200000,0.968007],[1245369600000,0.966936],[1245456000000,0.96712],[1245542400000,0.96712],[1245628800000,0.96712],[1245715200000,0.951966],[1245801600000,0.958234],[1245888000000,0.969981],[1245974400000,0.96047],[1246060800000,0.981402],[1246147200000,0.981402],[1246233600000,0.981402],[1246320000000,0.981402],[1246406400000,0.998759],[1246492800000,1.00454],[1246579200000,0.989962],[1246665600000,0.980405],[1246752000000,0.980405],[1246838400000,0.980405],[1246924800000,0.971944],[1247011200000,0.975513],[1247097600000,0.958302],[1247184000000,0.971329],[1247270400000,0.963324],[1247356800000,0.963324],[1247443200000,0.963324],[1247529600000,0.964105],[1247616000000,0.97244],[1247702400000,0.979667],[1247788800000,0.980254],[1247875200000,0.975865],[1247961600000,0.975865],[1248048000000,0.975865],[1248134400000,0.990098],[1248220800000,1.00026],[1248307200000,1.00625],[1248393600000,1.01366],[1248480000000,1.02897],[1248566400000,1.02897],[1248652800000,1.02897],[1248739200000,1.04261],[1248825600000,1.03375],[1248912000000,1.026],[1248998400000,1.03507],[1249084800000,1.05313],[1249171200000,1.05313],[1249257600000,1.05313],[1249344000000,1.06756],[1249430400000,1.07228],[1249516800000,1.07819],[1249603200000,1.07705],[1249689600000,1.07374],[1249776000000,1.07374],[1249862400000,1.07374],[1249948800000,1.07215],[1250035200000,1.05793],[1250121600000,1.0683],[1250208000000,1.08627],[1250294400000,1.09025],[1250380800000,1.09025],[1250467200000,1.09025],[1250553600000,1.06764],[1250640000000,1.07844],[1250726400000,1.0796],[1250812800000,1.1012],[1250899200000,1.12174],[1250985600000,1.12174],[1251072000000,1.12174],[1251158400000,1.12174],[1251244800000,1.13054],[1251331200000,1.12379],[1251417600000,1.12175],[1251504000000,1.1308],[1251590400000,1.1308],[1251676800000,1.1308],[1251763200000,1.11574],[1251849600000,1.11767],[1251936000000,1.10041],[1252022400000,1.10982],[1252108800000,1.10871],[1252195200000,1.10871],[1252281600000,1.10871],[1252368000000,1.12372],[1252454400000,1.13619],[1252540800000,1.13484],[1252627200000,1.13526],[1252713600000,1.14282],[1252800000000,1.14282],[1252886400000,1.14282],[1252972800000,1.13462],[1253059200000,1.14166],[1253145600000,1.15813],[1253232000000,1.16471],[1253318400000,1.16426],[1253404800000,1.16426],[1253491200000,1.16426],[1253577600000,1.15755],[1253664000000,1.17239],[1253750400000,1.17451],[1253836800000,1.16952],[1253923200000,1.15681],[1254009600000,1.15681],[1254096000000,1.15681],[1254182400000,1.14714],[1254268800000,1.13884],[1254355200000,1.14545],[1254441600000,1.14283],[1254528000000,1.13612],[1254614400000,1.13612],[1254700800000,1.13612],[1254787200000,1.13631],[1254873600000,1.14969],[1254960000000,1.13598],[1255046400000,1.14658],[1255132800000,1.14971],[1255219200000,1.14971],[1255305600000,1.14971],[1255392000000,1.14847],[1255478400000,1.15102],[1255564800000,1.15519],[1255651200000,1.14764],[1255737600000,1.1405],[1255824000000,1.1405],[1255910400000,1.1405],[1255996800000,1.14348],[1256083200000,1.15217],[1256169600000,1.15616],[1256256000000,1.16313],[1256342400000,1.17386],[1256428800000,1.17386],[1256515200000,1.17386],[1256601600000,1.17778],[1256688000000,1.16092],[1256774400000,1.13935],[1256860800000,1.14459],[1256947200000,1.13916],[1257033600000,1.13916],[1257120000000,1.13916],[1257206400000,1.13658],[1257292800000,1.12232],[1257379200000,1.13338],[1257465600000,1.14118],[1257552000000,1.14366],[1257638400000,1.14366],[1257724800000,1.14366],[1257811200000,1.16234],[1257897600000,1.16265],[1257984000000,1.17548],[1258070400000,1.16433],[1258156800000,1.16126],[1258243200000,1.16126],[1258329600000,1.16126],[1258416000000,1.1734],[1258502400000,1.16274],[1258588800000,1.17039],[1258675200000,1.15459],[1258761600000,1.14321],[1258848000000,1.14321],[1258934400000,1.14321],[1259020800000,1.16128],[1259107200000,1.15955],[1259193600000,1.16286],[1259280000000,1.15049],[1259366400000,1.14125],[1259452800000,1.14125],[1259539200000,1.14125],[1259625600000,1.14797],[1259712000000,1.15592],[1259798400000,1.16597],[1259884800000,1.17109],[1259971200000,1.15993],[1260057600000,1.15993],[1260144000000,1.15993],[1260230400000,1.13186],[1260316800000,1.12516],[1260403200000,1.12334],[1260489600000,1.12719],[1260576000000,1.1274],[1260662400000,1.1274],[1260748800000,1.1274],[1260835200000,1.12153],[1260921600000,1.10803],[1261008000000,1.1136],[1261094400000,1.09517],[1261180800000,1.09262],[1261267200000,1.09262],[1261353600000,1.09262],[1261440000000,1.10072],[1261526400000,1.09103],[1261612800000,1.08841],[1261699200000,1.0971],[1261785600000,1.09703],[1261872000000,1.09703],[1261958400000,1.09703],[1262044800000,1.1036],[1262131200000,1.11067]], 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, 0.948489],[1231977600000, 0.948489],[1234656000000, 0.905508],[1237075200000, 0.897459],[1239753600000, 0.935156],[1242345600000, 0.983836],[1245024000000, 0.982791],[1247616000000, 0.992264],[1250294400000, 1.090756],[1252972800000, 1.141684],[1255564800000, 1.149564],[1258243200000, 1.151336],[1260835200000, 1.120043]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });