$(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: [[1168041600000,0.886521],[1168128000000,0.886521],[1168214400000,0.886521],[1168300800000,0.886521],[1168387200000,0.881978],[1168473600000,0.879934],[1168560000000,0.879639],[1168646400000,0.873615],[1168732800000,0.873615],[1168819200000,0.873615],[1168905600000,0.876973],[1168992000000,0.877739],[1169078400000,0.874758],[1169164800000,0.875439],[1169251200000,0.87789],[1169337600000,0.87789],[1169424000000,0.87789],[1169510400000,0.876435],[1169596800000,0.883433],[1169683200000,0.880979],[1169769600000,0.879233],[1169856000000,0.874005],[1169942400000,0.874005],[1170028800000,0.874005],[1170115200000,0.875266],[1170201600000,0.878815],[1170288000000,0.877466],[1170374400000,0.881995],[1170460800000,0.882066],[1170547200000,0.882066],[1170633600000,0.882066],[1170720000000,0.875666],[1170806400000,0.87771],[1170892800000,0.880043],[1170979200000,0.880255],[1171065600000,0.881316],[1171152000000,0.881316],[1171238400000,0.881316],[1171324800000,0.87779],[1171411200000,0.882297],[1171497600000,0.886374],[1171584000000,0.890005],[1171670400000,0.888654],[1171756800000,0.888654],[1171843200000,0.888654],[1171929600000,0.889511],[1172016000000,0.890344],[1172102400000,0.89038],[1172188800000,0.887738],[1172275200000,0.88967],[1172361600000,null],[1172448000000,0.88967],[1172534400000,0.891611],[1172620800000,0.89639],[1172707200000,0.895186],[1172793600000,0.896376],[1172880000000,0.892341],[1172966400000,0.892341],[1173052800000,0.892341],[1173139200000,0.887049],[1173225600000,0.888189],[1173312000000,0.89061],[1173398400000,0.89061],[1173484800000,0.89061],[1173571200000,0.89061],[1173657600000,0.89061],[1173744000000,0.891818],[1173830400000,0.895949],[1173916800000,0.893529],[1174003200000,0.896552],[1174089600000,0.903372],[1174176000000,0.903372],[1174262400000,0.903372],[1174348800000,0.901977],[1174435200000,0.90149],[1174521600000,0.901166],[1174608000000,0.904989],[1174694400000,0.903313],[1174780800000,0.903313],[1174867200000,0.903313],[1174953600000,0.899207],[1175040000000,0.904681],[1175126400000,0.904882],[1175212800000,0.905081],[1175299200000,0.902667],[1175385600000,0.902667],[1175472000000,0.902667],[1175558400000,0.905981],[1175644800000,0.905305],[1175731200000,0.904583],[1175817600000,0.905981],[1175904000000,0.905981],[1175990400000,0.905981],[1176076800000,0.905981],[1176163200000,0.905981],[1176249600000,0.909352],[1176336000000,0.908957],[1176422400000,0.912166],[1176508800000,0.916642],[1176595200000,0.916642],[1176681600000,0.916642],[1176768000000,0.917935],[1176854400000,0.917782],[1176940800000,0.919876],[1177027200000,0.921613],[1177113600000,0.922001],[1177200000000,0.922001],[1177286400000,0.922001],[1177372800000,0.918705],[1177459200000,0.920387],[1177545600000,0.925064],[1177632000000,0.921521],[1177718400000,0.924782],[1177804800000,0.924782],[1177891200000,0.924782],[1177977600000,0.924782],[1178064000000,0.924782],[1178150400000,0.924782],[1178236800000,0.92255],[1178323200000,0.919026],[1178409600000,0.919026],[1178496000000,0.919026],[1178582400000,0.922698],[1178668800000,0.918761],[1178755200000,0.918761],[1178841600000,0.916709],[1178928000000,0.913931],[1179014400000,0.913931],[1179100800000,0.913931],[1179187200000,0.918262],[1179273600000,0.91743],[1179360000000,0.919709],[1179446400000,0.915743],[1179532800000,0.913186],[1179619200000,0.913186],[1179705600000,0.913186],[1179792000000,0.910889],[1179878400000,0.911591],[1179964800000,0.914128],[1180051200000,0.911405],[1180137600000,0.910881],[1180224000000,0.910881],[1180310400000,0.910881],[1180396800000,0.910881],[1180483200000,0.915698],[1180569600000,0.909751],[1180656000000,0.912062],[1180742400000,0.910885],[1180828800000,0.910885],[1180915200000,0.910885],[1181001600000,0.913991],[1181088000000,0.917528],[1181174400000,0.916388],[1181260800000,0.913484],[1181347200000,0.905388],[1181433600000,0.905388],[1181520000000,0.905388],[1181606400000,null],[1181692800000,0.904825],[1181779200000,0.900977],[1181865600000,null],[1181952000000,null],[1182038400000,0.902977],[1182124800000,0.902977],[1182211200000,0.909326],[1182297600000,0.909111],[1182384000000,null],[1182470400000,0.908912],[1182556800000,0.911934],[1182643200000,0.911934],[1182729600000,0.911934],[1182816000000,0.913364],[1182902400000,0.913431],[1182988800000,0.91184],[1183075200000,0.91184],[1183161600000,0.91184],[1183248000000,0.91184],[1183334400000,0.91184],[1183420800000,0.92218],[1183507200000,0.922988],[1183593600000,0.924154],[1183680000000,0.925647],[1183766400000,0.922673],[1183852800000,0.922673],[1183939200000,0.922673],[1184025600000,0.924494],[1184112000000,0.927636],[1184198400000,0.933566],[1184284800000,0.935703],[1184371200000,0.935271],[1184457600000,0.935271],[1184544000000,0.935271],[1184630400000,0.93524],[1184716800000,0.934574],[1184803200000,0.935117],[1184889600000,0.937925],[1184976000000,0.936784],[1185062400000,0.936784],[1185148800000,0.936784],[1185235200000,0.938018],[1185321600000,0.93882],[1185408000000,0.932699],[1185494400000,0.931236],[1185580800000,0.92648],[1185667200000,0.92648],[1185753600000,0.92648],[1185840000000,null],[1185926400000,0.930269],[1186012800000,0.927295],[1186099200000,0.927288],[1186185600000,0.929236],[1186272000000,0.929236],[1186358400000,0.929236],[1186444800000,0.937588],[1186531200000,0.935909],[1186617600000,0.935796],[1186704000000,0.931461],[1186790400000,0.926151],[1186876800000,0.926151],[1186963200000,0.926151],[1187049600000,0.926244],[1187136000000,0.922235],[1187222400000,0.914493],[1187308800000,0.90965],[1187395200000,0.913098],[1187481600000,0.913098],[1187568000000,0.913098],[1187654400000,0.914554],[1187740800000,0.916664],[1187827200000,0.915671],[1187913600000,0.921155],[1188000000000,0.921155],[1188086400000,0.921155],[1188172800000,0.921155],[1188259200000,0.926769],[1188345600000,0.926939],[1188432000000,0.924427],[1188518400000,0.922904],[1188604800000,0.929109],[1188691200000,0.929109],[1188777600000,0.929109],[1188864000000,0.924234],[1188950400000,0.920684],[1189036800000,0.921202],[1189123200000,0.926905],[1189209600000,0.928798],[1189296000000,0.928798],[1189382400000,0.928798],[1189468800000,0.935474],[1189555200000,0.937403],[1189641600000,0.941463],[1189728000000,0.942315],[1189814400000,0.939655],[1189900800000,0.939655],[1189987200000,0.939655],[1190073600000,0.940769],[1190160000000,0.939877],[1190246400000,0.947197],[1190332800000,0.950555],[1190419200000,0.951906],[1190505600000,0.951906],[1190592000000,0.951906],[1190678400000,0.956114],[1190764800000,0.955396],[1190851200000,null],[1190937600000,null],[1191024000000,0.96056],[1191110400000,0.96056],[1191196800000,0.96056],[1191283200000,0.964085],[1191369600000,0.959585],[1191456000000,0.961643],[1191542400000,0.956035],[1191628800000,0.957981],[1191715200000,0.957981],[1191801600000,0.957981],[1191888000000,0.954808],[1191974400000,0.951233],[1192060800000,0.958671],[1192147200000,0.962353],[1192233600000,0.960604],[1192320000000,0.960604],[1192406400000,0.960604],[1192492800000,0.96417],[1192579200000,0.958801],[1192665600000,0.962047],[1192752000000,0.968754],[1192838400000,0.967957],[1192924800000,0.967957],[1193011200000,0.967957],[1193097600000,0.959614],[1193184000000,0.965589],[1193270400000,0.96404],[1193356800000,0.96934],[1193443200000,0.974382],[1193529600000,0.974382],[1193616000000,0.974382],[1193702400000,0.974895],[1193788800000,0.975979],[1193875200000,0.978676],[1193961600000,0.977181],[1194048000000,0.980936],[1194134400000,0.980936],[1194220800000,0.980936],[1194307200000,0.981506],[1194393600000,0.985516],[1194480000000,0.997399],[1194566400000,0.993498],[1194652800000,0.994783],[1194739200000,0.994783],[1194825600000,0.994783],[1194912000000,0.987909],[1194998400000,0.989807],[1195084800000,0.996216],[1195171200000,0.991949],[1195257600000,0.992682],[1195344000000,0.992682],[1195430400000,0.992682],[1195516800000,0.992938],[1195603200000,1.00188],[1195689600000,1.00358],[1195776000000,1.00453],[1195862400000,1.00314],[1195948800000,1.00314],[1196035200000,1.00314],[1196121600000,1.00554],[1196208000000,1.00733],[1196294400000,0.998717],[1196380800000,0.998027],[1196467200000,0.999572],[1196553600000,0.999572],[1196640000000,0.999572],[1196726400000,0.993258],[1196812800000,0.998298],[1196899200000,0.996809],[1196985600000,0.985396],[1197072000000,0.991735],[1197158400000,0.991735],[1197244800000,0.991735],[1197331200000,0.996232],[1197417600000,0.993119],[1197504000000,0.993322],[1197590400000,0.99377],[1197676800000,0.981888],[1197763200000,0.981888],[1197849600000,0.981888],[1197936000000,0.974025],[1198022400000,0.97562],[1198108800000,0.973601],[1198195200000,0.971086],[1198281600000,0.973132],[1198368000000,0.973132],[1198454400000,0.973132],[1198540800000,0.974507],[1198627200000,0.974507],[1198713600000,0.974507],[1198800000000,0.983073],[1198886400000,0.995019]], 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: [[1168819200000, 0.878586],[1168819200000, 0.878586],[1171497600000, 0.884853],[1173916800000, 0.897449],[1176595200000, 0.914491],[1179187200000, 0.916141],[1181865600000, 0.909981],[1184457600000, 0.929577],[1187136000000, 0.923749],[1189814400000, 0.939611],[1192406400000, 0.963709],[1195084800000, 0.993561],[1197676800000, 0.985694]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });