$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1168041600000,4.10475],[1168128000000,4.10475],[1168214400000,4.10475],[1168300800000,4.10475],[1168387200000,4.07645],[1168473600000,4.06428],[1168560000000,4.0653],[1168646400000,4.03781],[1168732800000,4.03781],[1168819200000,4.03781],[1168905600000,4.05234],[1168992000000,4.05333],[1169078400000,4.03831],[1169164800000,4.03263],[1169251200000,4.04487],[1169337600000,4.04487],[1169424000000,4.04487],[1169510400000,4.03626],[1169596800000,4.07324],[1169683200000,4.05528],[1169769600000,4.05713],[1169856000000,4.02558],[1169942400000,4.02558],[1170028800000,4.02558],[1170115200000,4.02387],[1170201600000,4.03477],[1170288000000,4.03464],[1170374400000,4.06498],[1170460800000,4.06498],[1170547200000,4.06498],[1170633600000,4.06498],[1170720000000,4.03657],[1170806400000,4.06353],[1170892800000,4.07078],[1170979200000,4.04168],[1171065600000,4.04242],[1171152000000,4.04242],[1171238400000,4.04242],[1171324800000,4.0293],[1171411200000,4.05107],[1171497600000,4.06098],[1171584000000,4.07831],[1171670400000,4.08654],[1171756800000,4.08654],[1171843200000,4.08654],[1171929600000,4.08983],[1172016000000,4.08355],[1172102400000,4.08079],[1172188800000,4.06519],[1172275200000,4.07863],[1172361600000,null],[1172448000000,4.07863],[1172534400000,4.10159],[1172620800000,4.1285],[1172707200000,4.13458],[1172793600000,4.14821],[1172880000000,4.12697],[1172966400000,4.12697],[1173052800000,4.12697],[1173139200000,4.12932],[1173225600000,4.12438],[1173312000000,4.13282],[1173398400000,4.13282],[1173484800000,4.13282],[1173571200000,4.13282],[1173657600000,4.13282],[1173744000000,4.11711],[1173830400000,4.14731],[1173916800000,4.14276],[1174003200000,4.15162],[1174089600000,4.19025],[1174176000000,4.19025],[1174262400000,4.19025],[1174348800000,4.17087],[1174435200000,4.16453],[1174521600000,4.15586],[1174608000000,4.16446],[1174694400000,4.16366],[1174780800000,4.16366],[1174867200000,4.16366],[1174953600000,4.13304],[1175040000000,4.15782],[1175126400000,4.17022],[1175212800000,4.15835],[1175299200000,4.13959],[1175385600000,4.13959],[1175472000000,4.13959],[1175558400000,4.15989],[1175644800000,4.14488],[1175731200000,4.13869],[1175817600000,4.14088],[1175904000000,4.14088],[1175990400000,4.14088],[1176076800000,4.14088],[1176163200000,4.14088],[1176249600000,4.14408],[1176336000000,4.1363],[1176422400000,4.14584],[1176508800000,4.1768],[1176595200000,4.1768],[1176681600000,4.1768],[1176768000000,4.16454],[1176854400000,4.17058],[1176940800000,4.18915],[1177027200000,4.20272],[1177113600000,4.18608],[1177200000000,4.18608],[1177286400000,4.18608],[1177372800000,4.16872],[1177459200000,4.18558],[1177545600000,4.1988],[1177632000000,4.17842],[1177718400000,4.19312],[1177804800000,4.19312],[1177891200000,4.19312],[1177977600000,4.19312],[1178064000000,4.19312],[1178150400000,4.19312],[1178236800000,4.17171],[1178323200000,4.15578],[1178409600000,4.15578],[1178496000000,4.15578],[1178582400000,4.17435],[1178668800000,4.15234],[1178755200000,4.15234],[1178841600000,4.14687],[1178928000000,4.14285],[1179014400000,4.14285],[1179100800000,4.14285],[1179187200000,4.14305],[1179273600000,4.14219],[1179360000000,4.14317],[1179446400000,4.12297],[1179532800000,4.1158],[1179619200000,4.1158],[1179705600000,4.1158],[1179792000000,4.09927],[1179878400000,4.10257],[1179964800000,4.11952],[1180051200000,4.11391],[1180137600000,4.11401],[1180224000000,4.11401],[1180310400000,4.11401],[1180396800000,4.11401],[1180483200000,4.13357],[1180569600000,4.11556],[1180656000000,4.12318],[1180742400000,4.10874],[1180828800000,4.10874],[1180915200000,4.10874],[1181001600000,4.12531],[1181088000000,4.14588],[1181174400000,4.14786],[1181260800000,4.12839],[1181347200000,4.0918],[1181433600000,4.0918],[1181520000000,4.0918],[1181606400000,null],[1181692800000,4.07056],[1181779200000,4.05876],[1181865600000,null],[1181952000000,null],[1182038400000,4.05621],[1182124800000,4.05621],[1182211200000,4.07282],[1182297600000,4.0708],[1182384000000,null],[1182470400000,4.0724],[1182556800000,4.0949],[1182643200000,4.0949],[1182729600000,4.0949],[1182816000000,4.11041],[1182902400000,4.10787],[1182988800000,4.10786],[1183075200000,4.10786],[1183161600000,4.10786],[1183248000000,4.10786],[1183334400000,4.10786],[1183420800000,4.16127],[1183507200000,4.15015],[1183593600000,4.15333],[1183680000000,4.1613],[1183766400000,4.13887],[1183852800000,4.13887],[1183939200000,4.13887],[1184025600000,4.14824],[1184112000000,4.16923],[1184198400000,4.20034],[1184284800000,4.20112],[1184371200000,4.19803],[1184457600000,4.19803],[1184544000000,4.19803],[1184630400000,4.20355],[1184716800000,4.20101],[1184803200000,4.19889],[1184889600000,4.20808],[1184976000000,4.19405],[1185062400000,4.19405],[1185148800000,4.19405],[1185235200000,4.19624],[1185321600000,4.19686],[1185408000000,4.1658],[1185494400000,4.1727],[1185580800000,4.17171],[1185667200000,4.17171],[1185753600000,4.17171],[1185840000000,null],[1185926400000,4.19035],[1186012800000,4.19799],[1186099200000,4.18404],[1186185600000,4.19094],[1186272000000,4.19094],[1186358400000,4.19094],[1186444800000,4.25883],[1186531200000,4.23541],[1186617600000,4.23],[1186704000000,4.22727],[1186790400000,4.22536],[1186876800000,4.22536],[1186963200000,4.22536],[1187049600000,4.20505],[1187136000000,4.17968],[1187222400000,4.15393],[1187308800000,4.15257],[1187395200000,4.18238],[1187481600000,4.18238],[1187568000000,4.18238],[1187654400000,4.17918],[1187740800000,4.19839],[1187827200000,4.17881],[1187913600000,4.18311],[1188000000000,4.18311],[1188086400000,4.18311],[1188172800000,4.18311],[1188259200000,4.19594],[1188345600000,4.21625],[1188432000000,4.20504],[1188518400000,4.19037],[1188604800000,4.20705],[1188691200000,4.20705],[1188777600000,4.20705],[1188864000000,4.17753],[1188950400000,4.16488],[1189036800000,4.16835],[1189123200000,4.20213],[1189209600000,4.20787],[1189296000000,4.20787],[1189382400000,4.20787],[1189468800000,4.25382],[1189555200000,4.25652],[1189641600000,4.26984],[1189728000000,4.27535],[1189814400000,4.25153],[1189900800000,4.25153],[1189987200000,4.25153],[1190073600000,4.25804],[1190160000000,4.24955],[1190246400000,4.27901],[1190332800000,4.3042],[1190419200000,4.29542],[1190505600000,4.29542],[1190592000000,4.29542],[1190678400000,4.30899],[1190764800000,4.32043],[1190851200000,null],[1190937600000,null],[1191024000000,4.31323],[1191110400000,4.31323],[1191196800000,4.31323],[1191283200000,4.32883],[1191369600000,4.29732],[1191456000000,4.30979],[1191542400000,4.28548],[1191628800000,4.29446],[1191715200000,4.29446],[1191801600000,4.29446],[1191888000000,4.26581],[1191974400000,4.25262],[1192060800000,4.27257],[1192147200000,4.28524],[1192233600000,4.25958],[1192320000000,4.25958],[1192406400000,4.25958],[1192492800000,4.2783],[1192579200000,4.26535],[1192665600000,4.27685],[1192752000000,4.32473],[1192838400000,4.317],[1192924800000,4.317],[1193011200000,4.317],[1193097600000,4.29659],[1193184000000,4.30854],[1193270400000,4.30154],[1193356800000,4.32671],[1193443200000,4.34133],[1193529600000,4.34133],[1193616000000,4.34133],[1193702400000,4.33206],[1193788800000,4.34334],[1193875200000,4.35254],[1193961600000,4.35232],[1194048000000,4.37053],[1194134400000,4.37053],[1194220800000,4.37053],[1194307200000,4.38452],[1194393600000,4.41003],[1194480000000,4.48165],[1194566400000,4.46138],[1194652800000,4.49852],[1194739200000,4.49852],[1194825600000,4.49852],[1194912000000,4.48844],[1194998400000,4.48803],[1195084800000,4.51277],[1195171200000,4.49295],[1195257600000,4.50979],[1195344000000,4.50979],[1195430400000,4.50979],[1195516800000,4.51814],[1195603200000,4.55048],[1195689600000,4.56748],[1195776000000,4.57965],[1195862400000,4.58188],[1195948800000,4.58188],[1196035200000,4.58188],[1196121600000,4.57899],[1196208000000,4.60086],[1196294400000,4.52362],[1196380800000,4.50936],[1196467200000,4.50656],[1196553600000,4.50656],[1196640000000,4.50656],[1196726400000,4.47026],[1196812800000,4.51712],[1196899200000,4.51671],[1196985600000,4.4536],[1197072000000,4.46994],[1197158400000,4.46994],[1197244800000,4.46994],[1197331200000,4.48909],[1197417600000,4.45007],[1197504000000,4.45606],[1197590400000,4.44459],[1197676800000,4.39588],[1197763200000,4.39588],[1197849600000,4.39588],[1197936000000,4.37543],[1198022400000,4.38506],[1198108800000,4.37616],[1198195200000,4.36442],[1198281600000,4.37148],[1198368000000,4.37148],[1198454400000,4.37148],[1198540800000,4.37248],[1198627200000,4.37248],[1198713600000,4.37248],[1198800000000,4.39431],[1198886400000,4.46848]], 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, 4.054115],[1168819200000, 4.054115],[1171497600000, 4.067421],[1173916800000, 4.148928],[1176595200000, 4.165992],[1179187200000, 4.139099],[1181865600000, 4.098331],[1184457600000, 4.173728],[1187136000000, 4.197019],[1189814400000, 4.250027],[1192406400000, 4.300066],[1195084800000, 4.491179],[1197676800000, 4.431391]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });