$(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: [[1168041600000,0.797709],[1168128000000,0.797709],[1168214400000,0.797709],[1168300800000,0.797709],[1168387200000,0.796329],[1168473600000,0.790377],[1168560000000,0.785025],[1168646400000,0.780364],[1168732800000,0.780364],[1168819200000,0.780364],[1168905600000,0.784633],[1168992000000,0.786777],[1169078400000,0.780911],[1169164800000,0.780202],[1169251200000,0.782002],[1169337600000,0.782002],[1169424000000,0.782002],[1169510400000,0.780721],[1169596800000,0.788647],[1169683200000,0.794763],[1169769600000,0.798087],[1169856000000,0.795143],[1169942400000,0.795143],[1170028800000,0.795143],[1170115200000,0.798178],[1170201600000,0.802015],[1170288000000,0.802868],[1170374400000,0.809193],[1170460800000,0.808199],[1170547200000,0.808199],[1170633600000,0.808199],[1170720000000,0.803833],[1170806400000,0.806493],[1170892800000,0.810734],[1170979200000,0.810383],[1171065600000,0.807839],[1171152000000,0.807839],[1171238400000,0.807839],[1171324800000,0.8082],[1171411200000,0.810764],[1171497600000,0.816715],[1171584000000,0.820809],[1171670400000,0.823556],[1171756800000,0.823556],[1171843200000,0.823556],[1171929600000,0.824423],[1172016000000,0.825496],[1172102400000,0.823346],[1172188800000,0.820801],[1172275200000,0.8223],[1172361600000,null],[1172448000000,0.8223],[1172534400000,0.824234],[1172620800000,0.82903],[1172707200000,0.82162],[1172793600000,0.823606],[1172880000000,0.819038],[1172966400000,0.819038],[1173052800000,0.819038],[1173139200000,0.807395],[1173225600000,0.810574],[1173312000000,0.814136],[1173398400000,0.814136],[1173484800000,0.814136],[1173571200000,0.814136],[1173657600000,0.814136],[1173744000000,0.817998],[1173830400000,0.824645],[1173916800000,0.819626],[1174003200000,0.825909],[1174089600000,0.826725],[1174176000000,0.826725],[1174262400000,0.826725],[1174348800000,0.824499],[1174435200000,0.822349],[1174521600000,0.819154],[1174608000000,0.825447],[1174694400000,0.829345],[1174780800000,0.829345],[1174867200000,0.829345],[1174953600000,0.824268],[1175040000000,0.829363],[1175126400000,0.828763],[1175212800000,0.832234],[1175299200000,0.828377],[1175385600000,0.828377],[1175472000000,0.828377],[1175558400000,0.827337],[1175644800000,0.825678],[1175731200000,0.82556],[1175817600000,0.830366],[1175904000000,0.830366],[1175990400000,0.830366],[1176076800000,0.830366],[1176163200000,0.830366],[1176249600000,0.836434],[1176336000000,0.837278],[1176422400000,0.840803],[1176508800000,0.843818],[1176595200000,0.843818],[1176681600000,0.843818],[1176768000000,0.845567],[1176854400000,0.846917],[1176940800000,0.845424],[1177027200000,0.847179],[1177113600000,0.847491],[1177200000000,0.847491],[1177286400000,0.847491],[1177372800000,0.844491],[1177459200000,0.846466],[1177545600000,0.844285],[1177632000000,0.84572],[1177718400000,0.84661],[1177804800000,0.84661],[1177891200000,0.84661],[1177977600000,0.84661],[1178064000000,0.84661],[1178150400000,0.84661],[1178236800000,0.846413],[1178323200000,0.842557],[1178409600000,0.842557],[1178496000000,0.842557],[1178582400000,0.846537],[1178668800000,0.841543],[1178755200000,0.841543],[1178841600000,0.837252],[1178928000000,0.832876],[1179014400000,0.832876],[1179100800000,0.832876],[1179187200000,0.834573],[1179273600000,0.834404],[1179360000000,0.838773],[1179446400000,0.83523],[1179532800000,0.832524],[1179619200000,0.832524],[1179705600000,0.832524],[1179792000000,0.831299],[1179878400000,0.835447],[1179964800000,0.838868],[1180051200000,0.837856],[1180137600000,0.838558],[1180224000000,0.838558],[1180310400000,0.838558],[1180396800000,0.838558],[1180483200000,0.842332],[1180569600000,0.834875],[1180656000000,0.836722],[1180742400000,0.836541],[1180828800000,0.836541],[1180915200000,0.836541],[1181001600000,0.839663],[1181088000000,0.845332],[1181174400000,0.844562],[1181260800000,0.841667],[1181347200000,0.832201],[1181433600000,0.832201],[1181520000000,0.832201],[1181606400000,null],[1181692800000,0.830824],[1181779200000,0.828285],[1181865600000,null],[1181952000000,null],[1182038400000,0.830737],[1182124800000,0.830737],[1182211200000,0.838269],[1182297600000,0.837791],[1182384000000,null],[1182470400000,0.842054],[1182556800000,0.849844],[1182643200000,0.849844],[1182729600000,0.849844],[1182816000000,0.849301],[1182902400000,0.848602],[1182988800000,0.8512],[1183075200000,0.8512],[1183161600000,0.8512],[1183248000000,0.8512],[1183334400000,0.8512],[1183420800000,0.861079],[1183507200000,0.865269],[1183593600000,0.866514],[1183680000000,0.869283],[1183766400000,0.867738],[1183852800000,0.867738],[1183939200000,0.867738],[1184025600000,0.869279],[1184112000000,0.866348],[1184198400000,0.871918],[1184284800000,0.877774],[1184371200000,0.879554],[1184457600000,0.879554],[1184544000000,0.879554],[1184630400000,0.880659],[1184716800000,0.882029],[1184803200000,0.878308],[1184889600000,0.883039],[1184976000000,0.88212],[1185062400000,0.88212],[1185148800000,0.88212],[1185235200000,0.882154],[1185321600000,0.882753],[1185408000000,0.872873],[1185494400000,0.868808],[1185580800000,0.857432],[1185667200000,0.857432],[1185753600000,0.857432],[1185840000000,null],[1185926400000,0.869657],[1186012800000,0.863232],[1186099200000,0.866493],[1186185600000,0.872009],[1186272000000,0.872009],[1186358400000,0.872009],[1186444800000,0.878576],[1186531200000,0.873312],[1186617600000,0.874847],[1186704000000,0.872972],[1186790400000,0.861818],[1186876800000,0.861818],[1186963200000,0.861818],[1187049600000,0.863392],[1187136000000,0.860621],[1187222400000,0.851631],[1187308800000,0.842505],[1187395200000,0.845321],[1187481600000,0.845321],[1187568000000,0.845321],[1187654400000,0.851631],[1187740800000,0.852852],[1187827200000,0.852598],[1187913600000,0.860678],[1188000000000,0.860678],[1188086400000,0.860678],[1188172800000,0.860678],[1188259200000,0.86742],[1188345600000,0.868238],[1188432000000,0.865161],[1188518400000,0.863557],[1188604800000,0.871227],[1188691200000,0.871227],[1188777600000,0.871227],[1188864000000,0.867952],[1188950400000,0.864914],[1189036800000,0.867447],[1189123200000,0.872949],[1189209600000,0.874563],[1189296000000,0.874563],[1189382400000,0.874563],[1189468800000,0.882279],[1189555200000,0.889145],[1189641600000,0.895235],[1189728000000,0.89578],[1189814400000,0.894194],[1189900800000,0.894194],[1189987200000,0.894194],[1190073600000,0.898216],[1190160000000,0.896994],[1190246400000,0.907409],[1190332800000,0.910512],[1190419200000,0.91116],[1190505600000,0.91116],[1190592000000,0.91116],[1190678400000,0.915722],[1190764800000,0.912571],[1190851200000,null],[1190937600000,null],[1191024000000,0.927693],[1191110400000,0.927693],[1191196800000,0.927693],[1191283200000,0.934915],[1191369600000,0.929426],[1191456000000,0.931092],[1191542400000,0.926172],[1191628800000,0.932795],[1191715200000,0.932795],[1191801600000,0.932795],[1191888000000,0.927633],[1191974400000,0.919951],[1192060800000,0.928119],[1192147200000,0.933476],[1192233600000,0.935726],[1192320000000,0.935726],[1192406400000,0.935726],[1192492800000,0.937754],[1192579200000,0.932135],[1192665600000,0.934698],[1192752000000,0.941398],[1192838400000,0.940551],[1192924800000,0.940551],[1193011200000,0.940551],[1193097600000,0.925044],[1193184000000,0.936056],[1193270400000,0.927784],[1193356800000,0.934805],[1193443200000,0.942204],[1193529600000,0.942204],[1193616000000,0.942204],[1193702400000,0.941136],[1193788800000,0.942305],[1193875200000,0.936431],[1193961600000,0.930278],[1194048000000,0.932283],[1194134400000,0.932283],[1194220800000,0.932283],[1194307200000,0.936145],[1194393600000,0.944246],[1194480000000,0.957328],[1194566400000,0.956767],[1194652800000,0.949231],[1194739200000,0.949231],[1194825600000,0.949231],[1194912000000,0.935026],[1194998400000,0.932676],[1195084800000,0.936424],[1195171200000,0.924838],[1195257600000,0.921217],[1195344000000,0.921217],[1195430400000,0.921217],[1195516800000,0.916102],[1195603200000,0.933887],[1195689600000,0.930308],[1195776000000,0.933106],[1195862400000,0.929185],[1195948800000,0.929185],[1196035200000,0.929185],[1196121600000,0.932719],[1196208000000,0.929625],[1196294400000,0.918561],[1196380800000,0.919702],[1196467200000,0.918697],[1196553600000,0.918697],[1196640000000,0.918697],[1196726400000,0.914136],[1196812800000,0.918018],[1196899200000,0.92114],[1196985600000,0.913469],[1197072000000,0.922757],[1197158400000,0.922757],[1197244800000,0.922757],[1197331200000,0.930004],[1197417600000,0.92646],[1197504000000,0.931424],[1197590400000,0.93481],[1197676800000,0.918752],[1197763200000,0.918752],[1197849600000,0.918752],[1197936000000,0.911064],[1198022400000,0.907062],[1198108800000,0.903704],[1198195200000,0.902397],[1198281600000,0.903896],[1198368000000,0.903896],[1198454400000,0.903896],[1198540800000,0.909806],[1198627200000,0.909806],[1198713600000,0.909806],[1198800000000,0.916838],[1198886400000,0.930456]], 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.789616],[1168819200000, 0.789616],[1171497600000, 0.815211],[1173916800000, 0.821995],[1176595200000, 0.839383],[1179187200000, 0.838544],[1181865600000, 0.840535],[1184457600000, 0.871367],[1187136000000, 0.861898],[1189814400000, 0.892355],[1192406400000, 0.934368],[1195084800000, 0.933331],[1197676800000, 0.916645]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });