$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1231200000000,1.404],[1231286400000,1.37738],[1231372800000,1.37738],[1231459200000,1.40685],[1231545600000,1.41388],[1231632000000,1.41388],[1231718400000,1.41388],[1231804800000,1.38384],[1231891200000,1.37034],[1231977600000,1.36136],[1232064000000,1.35219],[1232150400000,1.37125],[1232236800000,null],[1232323200000,1.37125],[1232409600000,1.36227],[1232496000000,1.33614],[1232582400000,1.3342],[1232668800000,1.34145],[1232755200000,1.32181],[1232841600000,1.32181],[1232928000000,1.32181],[1233014400000,1.34196],[1233100800000,1.36112],[1233187200000,1.37004],[1233273600000,1.3547],[1233360000000,1.32406],[1233446400000,1.32406],[1233532800000,1.32406],[1233619200000,1.31818],[1233705600000,1.32748],[1233792000000,1.32456],[1233878400000,1.32576],[1233964800000,1.32226],[1234051200000,1.32226],[1234137600000,1.32226],[1234224000000,1.34409],[1234310400000,1.33975],[1234396800000,1.33689],[1234483200000,1.32594],[1234569600000,null],[1234656000000,null],[1234742400000,1.3249],[1234828800000,1.31889],[1234915200000,1.30545],[1235001600000,1.30164],[1235088000000,1.31306],[1235174400000,1.30133],[1235260800000,1.30133],[1235347200000,1.30133],[1235433600000,1.32268],[1235520000000,1.31916],[1235606400000,1.32252],[1235692800000,1.32111],[1235779200000,1.30676],[1235865600000,1.30676],[1235952000000,1.30676],[1236038400000,1.30166],[1236124800000,1.30366],[1236211200000,1.29753],[1236297600000,1.29753],[1236384000000,1.30819],[1236470400000,1.30819],[1236556800000,1.30819],[1236643200000,1.30819],[1236729600000,null],[1236816000000,1.32154],[1236902400000,1.32063],[1236988800000,1.33309],[1237075200000,1.33309],[1237161600000,1.33309],[1237248000000,1.34683],[1237334400000,1.33684],[1237420800000,1.35692],[1237507200000,1.41271],[1237593600000,1.40009],[1237680000000,1.40009],[1237766400000,1.40009],[1237852800000,1.40118],[1237939200000,1.39612],[1238025600000,1.39494],[1238112000000,1.40659],[1238198400000,1.3743],[1238284800000,1.3743],[1238371200000,1.3743],[1238457600000,1.36379],[1238544000000,1.37579],[1238630400000,1.36938],[1238716800000,1.38397],[1238803200000,1.38789],[1238889600000,1.38789],[1238976000000,1.38789],[1239062400000,1.39517],[1239148800000,1.37024],[1239235200000,1.36733],[1239321600000,1.37177],[1239408000000,1.37177],[1239494400000,1.37177],[1239580800000,1.37177],[1239667200000,1.37177],[1239753600000,1.37228],[1239840000000,1.36154],[1239926400000,1.3641],[1240012800000,1.34976],[1240099200000,1.34976],[1240185600000,1.34976],[1240272000000,1.34976],[1240358400000,1.33674],[1240444800000,1.3384],[1240531200000,1.3489],[1240617600000,1.36775],[1240704000000,1.36775],[1240790400000,1.36775],[1240876800000,1.35676],[1240963200000,1.34307],[1241049600000,1.37143],[1241136000000,1.37234],[1241222400000,1.37234],[1241308800000,null],[1241395200000,1.37234],[1241481600000,1.37234],[1241568000000,1.38561],[1241654400000,1.37718],[1241740800000,1.38418],[1241827200000,1.38311],[1241913600000,1.38311],[1242000000000,1.38311],[1242086400000,1.38311],[1242172800000,1.40633],[1242259200000,1.39482],[1242345600000,1.38831],[1242432000000,1.38368],[1242518400000,1.38368],[1242604800000,1.38368],[1242691200000,1.38128],[1242777600000,1.39306],[1242864000000,1.40043],[1242950400000,1.4086],[1243036800000,1.42914],[1243123200000,1.42914],[1243209600000,1.42914],[1243296000000,1.43289],[1243382400000,1.42325],[1243468800000,1.42274],[1243555200000,1.41804],[1243641600000,1.4426],[1243728000000,1.4426],[1243814400000,1.4426],[1243900800000,1.45347],[1243987200000,1.45552],[1244073600000,1.45193],[1244160000000,1.44057],[1244246400000,1.44905],[1244332800000,1.44905],[1244419200000,1.44905],[1244505600000,1.44905],[1244592000000,1.42674],[1244678400000,1.44122],[1244764800000,1.42765],[1244851200000,1.43156],[1244937600000,1.43156],[1245024000000,1.43156],[1245110400000,1.41567],[1245196800000,1.42012],[1245283200000,1.4164],[1245369600000,1.42443],[1245456000000,1.42566],[1245542400000,1.42566],[1245628800000,1.42566],[1245715200000,1.41668],[1245801600000,1.42914],[1245888000000,1.43659],[1245974400000,1.42826],[1246060800000,1.44441],[1246147200000,1.44441],[1246233600000,1.44441],[1246320000000,1.44441],[1246406400000,1.45013],[1246492800000,1.44633],[1246579200000,1.4412],[1246665600000,1.43699],[1246752000000,1.43699],[1246838400000,1.43699],[1246924800000,1.42546],[1247011200000,1.43645],[1247097600000,1.42325],[1247184000000,1.43197],[1247270400000,1.42329],[1247356800000,1.42329],[1247443200000,1.42329],[1247529600000,1.43116],[1247616000000,1.43304],[1247702400000,1.44406],[1247788800000,1.44999],[1247875200000,1.44802],[1247961600000,1.44802],[1248048000000,1.44802],[1248134400000,1.46294],[1248220800000,1.46317],[1248307200000,1.46053],[1248393600000,1.46453],[1248480000000,1.46501],[1248566400000,1.46501],[1248652800000,1.46501],[1248739200000,1.47416],[1248825600000,1.46968],[1248912000000,1.45869],[1248998400000,1.453],[1249084800000,1.46184],[1249171200000,1.46184],[1249257600000,1.46184],[1249344000000,1.47672],[1249430400000,1.48405],[1249516800000,1.48707],[1249603200000,1.48583],[1249689600000,1.48565],[1249776000000,1.48565],[1249862400000,1.48565],[1249948800000,1.47075],[1250035200000,1.47054],[1250121600000,1.47313],[1250208000000,1.48772],[1250294400000,1.4914],[1250380800000,1.4914],[1250467200000,1.4914],[1250553600000,1.47564],[1250640000000,1.48328],[1250726400000,1.48793],[1250812800000,1.50865],[1250899200000,1.52859],[1250985600000,1.52859],[1251072000000,1.52859],[1251158400000,1.52859],[1251244800000,1.53255],[1251331200000,1.53178],[1251417600000,1.53134],[1251504000000,1.54173],[1251590400000,1.54173],[1251676800000,1.54173],[1251763200000,1.53188],[1251849600000,1.53463],[1251936000000,1.52559],[1252022400000,1.53772],[1252108800000,1.53185],[1252195200000,1.53185],[1252281600000,1.53185],[1252368000000,1.53917],[1252454400000,1.55486],[1252540800000,1.55975],[1252627200000,1.56207],[1252713600000,1.56808],[1252800000000,1.56808],[1252886400000,1.56808],[1252972800000,1.56438],[1253059200000,1.57127],[1253145600000,1.57797],[1253232000000,1.58292],[1253318400000,1.58232],[1253404800000,1.58232],[1253491200000,1.58232],[1253577600000,1.57719],[1253664000000,1.59013],[1253750400000,1.59054],[1253836800000,1.58888],[1253923200000,1.57834],[1254009600000,1.57834],[1254096000000,1.57834],[1254182400000,1.57673],[1254268800000,1.56552],[1254355200000,1.57439],[1254441600000,1.56406],[1254528000000,1.56404],[1254614400000,1.56404],[1254700800000,1.56404],[1254787200000,1.57267],[1254873600000,1.58407],[1254960000000,1.58121],[1255046400000,1.58844],[1255132800000,1.58724],[1255219200000,1.58724],[1255305600000,1.58724],[1255392000000,1.58872],[1255478400000,1.59864],[1255564800000,1.59891],[1255651200000,1.59345],[1255737600000,1.5919],[1255824000000,1.5919],[1255910400000,1.5919],[1255996800000,1.59728],[1256083200000,1.60498],[1256169600000,1.60227],[1256256000000,1.61309],[1256342400000,1.61383],[1256428800000,1.61383],[1256515200000,1.61383],[1256601600000,1.61397],[1256688000000,1.60016],[1256774400000,1.59065],[1256860800000,1.5894],[1256947200000,1.58936],[1257033600000,1.58936],[1257120000000,1.58936],[1257206400000,1.58728],[1257292800000,1.57795],[1257379200000,1.58973],[1257465600000,1.60106],[1257552000000,1.59619],[1257638400000,1.59619],[1257724800000,1.59619],[1257811200000,1.60895],[1257897600000,1.60702],[1257984000000,1.61509],[1258070400000,1.60352],[1258156800000,1.59776],[1258243200000,1.59776],[1258329600000,1.59776],[1258416000000,1.60762],[1258502400000,1.59733],[1258588800000,1.60628],[1258675200000,1.59594],[1258761600000,1.59068],[1258848000000,1.59068],[1258934400000,1.59068],[1259020800000,1.60713],[1259107200000,1.60728],[1259193600000,1.6185],[1259280000000,1.6163],[1259366400000,1.59968],[1259452800000,1.59968],[1259539200000,1.59968],[1259625600000,1.61239],[1259712000000,1.61819],[1259798400000,1.62024],[1259884800000,1.6234],[1259971200000,1.61663],[1260057600000,1.61663],[1260144000000,1.61663],[1260230400000,1.58648],[1260316800000,1.58518],[1260403200000,1.58494],[1260489600000,1.58084],[1260576000000,1.58294],[1260662400000,1.58294],[1260748800000,1.58294],[1260835200000,1.57079],[1260921600000,1.55798],[1261008000000,1.55944],[1261094400000,1.53617],[1261180800000,1.53552],[1261267200000,1.53552],[1261353600000,1.53552],[1261440000000,1.53884],[1261526400000,1.52902],[1261612800000,1.52824],[1261699200000,1.54074],[1261785600000,1.54065],[1261872000000,1.54065],[1261958400000,1.54065],[1262044800000,1.54155],[1262131200000,1.54551]], 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.364355],[1231977600000, 1.364355],[1234656000000, 1.319912],[1237075200000, 1.347572],[1239753600000, 1.365997],[1242345600000, 1.398739],[1245024000000, 1.435751],[1247616000000, 1.446441],[1250294400000, 1.498167],[1252972800000, 1.563765],[1255564800000, 1.590863],[1258243200000, 1.599287],[1260835200000, 1.568570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });