$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1168041600000,4.29779],[1168128000000,4.29779],[1168214400000,4.29779],[1168300800000,4.29779],[1168387200000,4.28922],[1168473600000,4.28661],[1168560000000,4.28669],[1168646400000,4.30164],[1168732800000,4.30164],[1168819200000,4.30164],[1168905600000,4.32566],[1168992000000,4.32423],[1169078400000,4.29846],[1169164800000,4.29119],[1169251200000,4.30824],[1169337600000,4.30824],[1169424000000,4.30824],[1169510400000,4.29697],[1169596800000,4.27638],[1169683200000,4.28242],[1169769600000,4.28723],[1169856000000,4.27073],[1169942400000,4.27073],[1170028800000,4.27073],[1170115200000,4.2631],[1170201600000,4.26989],[1170288000000,4.26869],[1170374400000,4.28876],[1170460800000,4.26677],[1170547200000,4.26677],[1170633600000,4.26677],[1170720000000,4.26275],[1170806400000,4.26986],[1170892800000,4.26704],[1170979200000,4.25644],[1171065600000,4.29428],[1171152000000,4.29428],[1171238400000,4.29428],[1171324800000,4.31098],[1171411200000,4.31135],[1171497600000,4.32782],[1171584000000,4.32871],[1171670400000,4.34176],[1171756800000,4.34176],[1171843200000,4.34176],[1171929600000,4.33215],[1172016000000,4.3322],[1172102400000,4.32486],[1172188800000,4.35029],[1172275200000,4.35787],[1172361600000,null],[1172448000000,4.35787],[1172534400000,4.35619],[1172620800000,4.34999],[1172707200000,4.32684],[1172793600000,4.30962],[1172880000000,4.3008],[1172966400000,4.3008],[1173052800000,4.3008],[1173139200000,4.27632],[1173225600000,4.28632],[1173312000000,4.29304],[1173398400000,4.29304],[1173484800000,4.29304],[1173571200000,4.29304],[1173657600000,4.29304],[1173744000000,4.31779],[1173830400000,4.31961],[1173916800000,4.29649],[1174003200000,4.29581],[1174089600000,4.30333],[1174176000000,4.30333],[1174262400000,4.30333],[1174348800000,4.29925],[1174435200000,4.32578],[1174521600000,4.35652],[1174608000000,4.36392],[1174694400000,4.36116],[1174780800000,4.36116],[1174867200000,4.36116],[1174953600000,4.34537],[1175040000000,4.36855],[1175126400000,4.35533],[1175212800000,4.35382],[1175299200000,4.37693],[1175385600000,4.37693],[1175472000000,4.37693],[1175558400000,4.36628],[1175644800000,4.36141],[1175731200000,4.36679],[1175817600000,4.38246],[1175904000000,4.38246],[1175990400000,4.38246],[1176076800000,4.38246],[1176163200000,4.38246],[1176249600000,4.39583],[1176336000000,4.41497],[1176422400000,4.43687],[1176508800000,4.45161],[1176595200000,4.45161],[1176681600000,4.45161],[1176768000000,4.45724],[1176854400000,4.46243],[1176940800000,4.45625],[1177027200000,4.4857],[1177113600000,4.48091],[1177200000000,4.48091],[1177286400000,4.48091],[1177372800000,4.49674],[1177459200000,4.50562],[1177545600000,4.50565],[1177632000000,4.50642],[1177718400000,4.52229],[1177804800000,4.52229],[1177891200000,4.52229],[1177977600000,4.52229],[1178064000000,4.52229],[1178150400000,4.52229],[1178236800000,4.55692],[1178323200000,4.57011],[1178409600000,4.57011],[1178496000000,4.57011],[1178582400000,4.57518],[1178668800000,4.58102],[1178755200000,4.58102],[1178841600000,4.55926],[1178928000000,4.52942],[1179014400000,4.52942],[1179100800000,4.52942],[1179187200000,4.55785],[1179273600000,4.57886],[1179360000000,4.59103],[1179446400000,4.59264],[1179532800000,4.60885],[1179619200000,4.60885],[1179705600000,4.60885],[1179792000000,4.64665],[1179878400000,4.66031],[1179964800000,4.66287],[1180051200000,4.66688],[1180137600000,4.65869],[1180224000000,4.65869],[1180310400000,4.65869],[1180396800000,4.65869],[1180483200000,4.66816],[1180569600000,4.70697],[1180656000000,4.72183],[1180742400000,4.7333],[1180828800000,4.7333],[1180915200000,4.7333],[1181001600000,4.77716],[1181088000000,4.77711],[1181174400000,4.75843],[1181260800000,4.76789],[1181347200000,4.72705],[1181433600000,4.72705],[1181520000000,4.72705],[1181606400000,null],[1181692800000,4.7543],[1181779200000,4.71534],[1181865600000,null],[1181952000000,null],[1182038400000,4.74862],[1182124800000,4.74862],[1182211200000,4.70954],[1182297600000,4.73257],[1182384000000,null],[1182470400000,4.73012],[1182556800000,4.71009],[1182643200000,4.71009],[1182729600000,4.71009],[1182816000000,4.71284],[1182902400000,4.71969],[1182988800000,4.71787],[1183075200000,4.71787],[1183161600000,4.71787],[1183248000000,4.71787],[1183334400000,4.71787],[1183420800000,4.76689],[1183507200000,4.77643],[1183593600000,4.77079],[1183680000000,4.77485],[1183766400000,4.80038],[1183852800000,4.80038],[1183939200000,4.80038],[1184025600000,4.82235],[1184112000000,4.81634],[1184198400000,4.76715],[1184284800000,4.80733],[1184371200000,4.82858],[1184457600000,4.82858],[1184544000000,4.82858],[1184630400000,4.82655],[1184716800000,4.83613],[1184803200000,4.82652],[1184889600000,4.83988],[1184976000000,4.83896],[1185062400000,4.83896],[1185148800000,4.83896],[1185235200000,4.83486],[1185321600000,4.83236],[1185408000000,4.86146],[1185494400000,4.81357],[1185580800000,4.76879],[1185667200000,4.76879],[1185753600000,4.76879],[1185840000000,null],[1185926400000,4.76068],[1186012800000,4.73986],[1186099200000,4.77729],[1186185600000,4.77819],[1186272000000,4.77819],[1186358400000,4.77819],[1186444800000,4.79594],[1186531200000,4.78137],[1186617600000,4.80544],[1186704000000,4.78841],[1186790400000,4.78731],[1186876800000,4.78731],[1186963200000,4.78731],[1187049600000,4.79666],[1187136000000,4.78223],[1187222400000,4.69078],[1187308800000,4.67864],[1187395200000,4.71301],[1187481600000,4.71301],[1187568000000,4.71301],[1187654400000,4.75967],[1187740800000,4.77131],[1187827200000,4.76534],[1187913600000,4.81044],[1188000000000,4.81044],[1188086400000,4.81044],[1188172800000,4.81044],[1188259200000,4.81419],[1188345600000,4.78491],[1188432000000,4.75916],[1188518400000,4.75512],[1188604800000,4.79096],[1188691200000,4.79096],[1188777600000,4.79096],[1188864000000,4.79332],[1188950400000,4.79406],[1189036800000,4.78885],[1189123200000,4.78268],[1189209600000,4.80378],[1189296000000,4.80378],[1189382400000,4.80378],[1189468800000,4.78171],[1189555200000,4.82555],[1189641600000,4.84885],[1189728000000,4.88718],[1189814400000,4.89941],[1189900800000,4.89941],[1189987200000,4.89941],[1190073600000,4.91712],[1190160000000,4.92256],[1190246400000,4.98578],[1190332800000,5.04748],[1190419200000,5.0421],[1190505600000,5.0421],[1190592000000,5.0421],[1190678400000,5.05],[1190764800000,5.03893],[1190851200000,null],[1190937600000,null],[1191024000000,5.07038],[1191110400000,5.07038],[1191196800000,5.07038],[1191283200000,5.08214],[1191369600000,5.06538],[1191456000000,5.07287],[1191542400000,5.05968],[1191628800000,5.11843],[1191715200000,5.11843],[1191801600000,5.11843],[1191888000000,5.13233],[1191974400000,5.11117],[1192060800000,5.14678],[1192147200000,5.1683],[1192233600000,5.16218],[1192320000000,5.16218],[1192406400000,5.16218],[1192492800000,5.19272],[1192579200000,5.14898],[1192665600000,5.17015],[1192752000000,5.17634],[1192838400000,5.22517],[1192924800000,5.22517],[1193011200000,5.22517],[1193097600000,5.15926],[1193184000000,5.2412],[1193270400000,5.20849],[1193356800000,5.24196],[1193443200000,5.25229],[1193529600000,5.25229],[1193616000000,5.25229],[1193702400000,5.25789],[1193788800000,5.2863],[1193875200000,5.29905],[1193961600000,5.33051],[1194048000000,5.40381],[1194134400000,5.40381],[1194220800000,5.40381],[1194307200000,5.40877],[1194393600000,5.44892],[1194480000000,5.56733],[1194566400000,5.43424],[1194652800000,5.37702],[1194739200000,5.37702],[1194825600000,5.37702],[1194912000000,5.27543],[1194998400000,5.28974],[1195084800000,5.28702],[1195171200000,5.1795],[1195257600000,5.17323],[1195344000000,5.17323],[1195430400000,5.17323],[1195516800000,5.16851],[1195603200000,5.1404],[1195689600000,5.11037],[1195776000000,5.11939],[1195862400000,5.11668],[1195948800000,5.11668],[1196035200000,5.11668],[1196121600000,5.12316],[1196208000000,5.08659],[1196294400000,5.07443],[1196380800000,5.09599],[1196467200000,5.07268],[1196553600000,5.07268],[1196640000000,5.07268],[1196726400000,5.0445],[1196812800000,5.02478],[1196899200000,4.96401],[1196985600000,4.96036],[1197072000000,5.02974],[1197158400000,5.02974],[1197244800000,5.02974],[1197331200000,5.02202],[1197417600000,4.99957],[1197504000000,4.98713],[1197590400000,4.97145],[1197676800000,4.93404],[1197763200000,4.93404],[1197849600000,4.93404],[1197936000000,4.99174],[1198022400000,5.01971],[1198108800000,5.02346],[1198195200000,5.05387],[1198281600000,5.05844],[1198368000000,5.05844],[1198454400000,5.05844],[1198540800000,5.11429],[1198627200000,5.11429],[1198713600000,5.11429],[1198800000000,5.13886],[1198886400000,5.15634]], 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.292733],[1168819200000, 4.292733],[1171497600000, 4.309714],[1173916800000, 4.320495],[1176595200000, 4.441626],[1179187200000, 4.597172],[1181865600000, 4.732268],[1184457600000, 4.803976],[1187136000000, 4.770460],[1189814400000, 4.900486],[1192406400000, 5.169889],[1195084800000, 5.255053],[1197676800000, 5.033978]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });