$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1168041600000,0.040054],[1168128000000,0.040054],[1168214400000,0.040054],[1168300800000,0.040054],[1168387200000,0.040255],[1168473600000,0.040335],[1168560000000,0.040226],[1168646400000,0.040226],[1168732800000,0.040226],[1168819200000,0.040226],[1168905600000,0.040303],[1168992000000,0.040313],[1169078400000,0.040345],[1169164800000,0.0404],[1169251200000,0.040445],[1169337600000,0.040445],[1169424000000,0.040445],[1169510400000,0.040316],[1169596800000,0.040172],[1169683200000,0.040169],[1169769600000,0.040159],[1169856000000,0.040006],[1169942400000,0.040006],[1170028800000,0.040006],[1170115200000,0.040048],[1170201600000,0.040003],[1170288000000,0.039965],[1170374400000,0.040022],[1170460800000,0.040086],[1170547200000,0.040086],[1170633600000,0.040086],[1170720000000,0.040226],[1170806400000,0.040255],[1170892800000,0.040223],[1170979200000,0.040213],[1171065600000,0.040403],[1171152000000,0.040403],[1171238400000,0.040403],[1171324800000,0.040536],[1171411200000,0.040667],[1171497600000,0.040742],[1171584000000,0.040706],[1171670400000,0.040621],[1171756800000,0.040621],[1171843200000,0.040621],[1171929600000,0.040579],[1172016000000,0.040526],[1172102400000,0.040507],[1172188800000,0.040556],[1172275200000,0.040877],[1172361600000,null],[1172448000000,0.040877],[1172534400000,0.040854],[1172620800000,0.040821],[1172707200000,0.040657],[1172793600000,0.040462],[1172880000000,0.040332],[1172966400000,0.040332],[1173052800000,0.040332],[1173139200000,0.040294],[1173225600000,0.040384],[1173312000000,0.040608],[1173398400000,0.040608],[1173484800000,0.040608],[1173571200000,0.040608],[1173657600000,0.040608],[1173744000000,0.041],[1173830400000,0.040944],[1173916800000,0.040851],[1174003200000,0.040709],[1174089600000,0.040726],[1174176000000,0.040726],[1174262400000,0.040726],[1174348800000,0.040834],[1174435200000,0.040821],[1174521600000,0.040752],[1174608000000,0.040752],[1174694400000,0.040752],[1174780800000,0.040752],[1174867200000,0.040752],[1174953600000,0.040954],[1175040000000,0.040795],[1175126400000,0.040739],[1175212800000,0.040808],[1175299200000,0.040778],[1175385600000,0.040778],[1175472000000,0.040778],[1175558400000,0.040944],[1175644800000,0.040874],[1175731200000,0.040858],[1175817600000,0.040934],[1175904000000,0.040904],[1175990400000,0.040904],[1176076800000,0.040904],[1176163200000,0.040904],[1176249600000,0.041104],[1176336000000,0.041251],[1176422400000,0.041363],[1176508800000,0.041461],[1176595200000,0.041461],[1176681600000,0.041461],[1176768000000,0.041461],[1176854400000,0.041387],[1176940800000,0.041309],[1177027200000,0.041434],[1177113600000,0.041711],[1177200000000,0.041711],[1177286400000,0.041711],[1177372800000,0.041763],[1177459200000,0.041718],[1177545600000,0.041767],[1177632000000,0.041846],[1177718400000,0.042076],[1177804800000,0.042076],[1177891200000,0.042076],[1177977600000,0.042076],[1178064000000,0.042076],[1178150400000,0.042076],[1178236800000,0.042129],[1178323200000,0.042337],[1178409600000,0.042337],[1178496000000,0.042337],[1178582400000,0.042512],[1178668800000,0.042323],[1178755200000,0.042323],[1178841600000,0.04209],[1178928000000,0.041944],[1179014400000,0.041944],[1179100800000,0.041944],[1179187200000,0.042048],[1179273600000,0.042228],[1179360000000,0.042235],[1179446400000,0.041923],[1179532800000,0.041881],[1179619200000,0.041881],[1179705600000,0.041881],[1179792000000,0.042034],[1179878400000,0.042034],[1179964800000,0.04209],[1180051200000,0.041957],[1180137600000,0.041846],[1180224000000,0.041846],[1180310400000,0.041846],[1180396800000,0.041846],[1180483200000,0.041383],[1180569600000,0.041523],[1180656000000,0.041251],[1180742400000,0.041312],[1180828800000,0.041312],[1180915200000,0.041312],[1181001600000,0.041485],[1181088000000,0.041438],[1181174400000,0.041736],[1181260800000,0.04176],[1181347200000,0.041705],[1181433600000,0.041705],[1181520000000,0.041705],[1181606400000,null],[1181692800000,0.041468],[1181779200000,0.041461],[1181865600000,null],[1181952000000,null],[1182038400000,0.041171],[1182124800000,0.041171],[1182211200000,0.041322],[1182297600000,0.041272],[1182384000000,null],[1182470400000,0.041044],[1182556800000,0.041191],[1182643200000,0.041191],[1182729600000,0.041191],[1182816000000,0.041228],[1182902400000,0.041523],[1182988800000,0.041742],[1183075200000,0.041742],[1183161600000,0.041742],[1183248000000,0.041742],[1183334400000,0.041742],[1183420800000,0.041472],[1183507200000,0.041438],[1183593600000,0.041489],[1183680000000,0.041434],[1183766400000,0.041434],[1183852800000,0.041434],[1183939200000,0.041434],[1184025600000,0.041444],[1184112000000,0.041451],[1184198400000,0.04167],[1184284800000,0.041523],[1184371200000,0.041523],[1184457600000,0.041523],[1184544000000,0.041523],[1184630400000,0.0414],[1184716800000,0.041506],[1184803200000,0.041451],[1184889600000,0.04137],[1184976000000,0.041383],[1185062400000,0.041383],[1185148800000,0.041383],[1185235200000,0.041397],[1185321600000,0.041194],[1185408000000,0.041278],[1185494400000,0.041134],[1185580800000,0.041004],[1185667200000,0.041004],[1185753600000,0.041004],[1185840000000,null],[1185926400000,0.040864],[1186012800000,0.040954],[1186099200000,0.040964],[1186185600000,0.040746],[1186272000000,0.040746],[1186358400000,0.040746],[1186444800000,0.040585],[1186531200000,0.040481],[1186617600000,0.040552],[1186704000000,0.040478],[1186790400000,0.0404],[1186876800000,0.0404],[1186963200000,0.0404],[1187049600000,0.040345],[1187136000000,0.040239],[1187222400000,0.040329],[1187308800000,0.040271],[1187395200000,0.040397],[1187481600000,0.040397],[1187568000000,0.040397],[1187654400000,0.040394],[1187740800000,0.040387],[1187827200000,0.040364],[1187913600000,0.040306],[1188000000000,0.040306],[1188086400000,0.040306],[1188172800000,0.040306],[1188259200000,0.040098],[1188345600000,0.040063],[1188432000000,0.04],[1188518400000,0.04],[1188604800000,0.04],[1188691200000,0.04],[1188777600000,0.04],[1188864000000,0.04039],[1188950400000,0.040732],[1189036800000,0.041047],[1189123200000,0.041077],[1189209600000,0.041282],[1189296000000,0.041282],[1189382400000,0.041282],[1189468800000,0.041322],[1189555200000,0.041336],[1189641600000,0.041343],[1189728000000,0.041455],[1189814400000,0.041519],[1189900800000,0.041519],[1189987200000,0.041519],[1190073600000,0.041519],[1190160000000,0.041554],[1190246400000,0.041625],[1190332800000,0.041639],[1190419200000,0.041636],[1190505600000,0.041636],[1190592000000,0.041636],[1190678400000,0.041629],[1190764800000,0.041636],[1190851200000,null],[1190937600000,null],[1191024000000,0.041749],[1191110400000,0.041749],[1191196800000,0.041749],[1191283200000,0.041746],[1191369600000,0.041742],[1191456000000,0.041742],[1191542400000,0.041742],[1191628800000,0.041756],[1191715200000,0.041756],[1191801600000,0.041756],[1191888000000,0.04177],[1191974400000,0.041756],[1192060800000,0.041749],[1192147200000,0.04176],[1192233600000,0.041798],[1192320000000,0.041798],[1192406400000,0.041798],[1192492800000,0.041853],[1192579200000,0.041825],[1192665600000,0.041812],[1192752000000,0.041822],[1192838400000,0.041891],[1192924800000,0.041891],[1193011200000,0.041891],[1193097600000,0.041836],[1193184000000,0.041818],[1193270400000,0.041815],[1193356800000,0.041815],[1193443200000,0.041815],[1193529600000,0.041815],[1193616000000,0.041815],[1193702400000,0.041812],[1193788800000,0.041791],[1193875200000,0.041774],[1193961600000,0.04176],[1194048000000,0.041736],[1194134400000,0.041736],[1194220800000,0.041736],[1194307200000,0.041736],[1194393600000,0.041763],[1194480000000,0.041836],[1194566400000,0.041857],[1194652800000,0.041829],[1194739200000,0.041829],[1194825600000,0.041829],[1194912000000,0.04185],[1194998400000,0.041867],[1195084800000,0.04186],[1195171200000,0.041843],[1195257600000,0.041853],[1195344000000,0.041853],[1195430400000,0.041853],[1195516800000,0.04185],[1195603200000,0.041874],[1195689600000,0.041916],[1195776000000,0.041964],[1195862400000,0.041954],[1195948800000,0.041954],[1196035200000,0.041954],[1196121600000,0.041937],[1196208000000,0.041877],[1196294400000,0.041822],[1196380800000,0.04178],[1196467200000,0.041798],[1196553600000,0.041798],[1196640000000,0.041798],[1196726400000,0.041794],[1196812800000,0.04178],[1196899200000,0.041798],[1196985600000,0.041836],[1197072000000,0.041818],[1197158400000,0.041818],[1197244800000,0.041818],[1197331200000,0.041812],[1197417600000,0.041836],[1197504000000,0.041839],[1197590400000,0.041815],[1197676800000,0.041829],[1197763200000,0.041829],[1197849600000,0.041829],[1197936000000,0.041829],[1198022400000,0.041829],[1198108800000,0.041853],[1198195200000,0.041853],[1198281600000,0.041818],[1198368000000,0.041818],[1198454400000,0.041818],[1198540800000,0.041815],[1198627200000,0.041791],[1198713600000,0.041756],[1198800000000,0.041739],[1198886400000,0.041891]], 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.040203],[1168819200000, 0.040203],[1171497600000, 0.040462],[1173916800000, 0.040678],[1176595200000, 0.041364],[1179187200000, 0.042030],[1181865600000, 0.041430],[1184457600000, 0.041406],[1187136000000, 0.040426],[1189814400000, 0.041254],[1192406400000, 0.041798],[1195084800000, 0.041843],[1197676800000, 0.041816]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });