$(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: [[1136246400000,4.34061],[1136332800000,4.34061],[1136419200000,4.34061],[1136505600000,4.37877],[1136592000000,4.31344],[1136678400000,4.31344],[1136764800000,4.31344],[1136851200000,4.31344],[1136937600000,4.32325],[1137024000000,4.3377],[1137110400000,4.35409],[1137196800000,4.35134],[1137283200000,4.35134],[1137369600000,4.35134],[1137456000000,4.35187],[1137542400000,4.35687],[1137628800000,4.33588],[1137715200000,4.28662],[1137801600000,4.34379],[1137888000000,4.34379],[1137974400000,4.34379],[1138060800000,4.38682],[1138147200000,4.38813],[1138233600000,4.38761],[1138320000000,4.37364],[1138406400000,4.4032],[1138492800000,4.4032],[1138579200000,4.4032],[1138665600000,4.413],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,4.41442],[1139270400000,4.41442],[1139356800000,4.40248],[1139443200000,4.36974],[1139529600000,4.39347],[1139616000000,4.39466],[1139702400000,4.39466],[1139788800000,4.39466],[1139875200000,4.369],[1139961600000,4.35777],[1140048000000,4.37711],[1140134400000,4.35766],[1140220800000,4.36489],[1140307200000,4.36489],[1140393600000,4.36489],[1140480000000,4.39348],[1140566400000,4.39898],[1140652800000,4.39654],[1140739200000,4.40172],[1140825600000,4.38023],[1140912000000,4.38023],[1140998400000,4.38023],[1141084800000,4.40416],[1141171200000,4.43163],[1141257600000,4.43652],[1141344000000,4.45142],[1141430400000,4.45446],[1141516800000,4.45446],[1141603200000,4.45446],[1141689600000,4.43415],[1141776000000,4.4119],[1141862400000,4.4119],[1141948800000,4.36424],[1142035200000,4.34059],[1142121600000,4.34059],[1142208000000,4.34059],[1142294400000,4.34984],[1142380800000,4.35209],[1142467200000,4.37388],[1142553600000,4.35657],[1142640000000,4.37282],[1142726400000,4.37282],[1142812800000,4.37282],[1142899200000,4.32553],[1142985600000,4.33622],[1143072000000,4.31066],[1143158400000,4.33324],[1143244800000,4.31893],[1143331200000,4.31893],[1143417600000,4.31893],[1143504000000,4.30683],[1143590400000,4.33411],[1143676800000,4.30278],[1143763200000,4.3298],[1143849600000,4.34004],[1143936000000,4.34004],[1144022400000,4.34004],[1144108800000,4.29849],[1144195200000,4.32013],[1144281600000,4.34853],[1144368000000,4.37087],[1144454400000,4.401],[1144540800000,4.401],[1144627200000,4.401],[1144713600000,4.40265],[1144800000000,4.40928],[1144886400000,4.41052],[1144972800000,4.39861],[1145059200000,4.39861],[1145145600000,4.39861],[1145232000000,4.39861],[1145318400000,4.39861],[1145404800000,4.41034],[1145491200000,4.43343],[1145577600000,4.44101],[1145664000000,4.43966],[1145750400000,4.43966],[1145836800000,4.43966],[1145923200000,4.43966],[1146009600000,4.44064],[1146096000000,4.46338],[1146182400000,4.4642],[1146268800000,4.49116],[1146355200000,4.49116],[1146441600000,4.49116],[1146528000000,4.49116],[1146614400000,4.49116],[1146700800000,4.55978],[1146787200000,4.54114],[1146873600000,4.55624],[1146960000000,4.55624],[1147046400000,4.55624],[1147132800000,4.55624],[1147219200000,4.55624],[1147305600000,4.59415],[1147392000000,4.57247],[1147478400000,4.58813],[1147564800000,4.58813],[1147651200000,4.58813],[1147737600000,4.52788],[1147824000000,4.53803],[1147910400000,4.57483],[1147996800000,4.53028],[1148083200000,4.50202],[1148169600000,4.50202],[1148256000000,4.50202],[1148342400000,4.48736],[1148428800000,4.52621],[1148515200000,4.50115],[1148601600000,4.52496],[1148688000000,4.55682],[1148774400000,4.55682],[1148860800000,4.55682],[1148947200000,4.57325],[1149033600000,4.58601],[1149120000000,4.60647],[1149206400000,4.5618],[1149292800000,4.5742],[1149379200000,4.5742],[1149465600000,4.5742],[1149552000000,4.59697],[1149638400000,4.55056],[1149724800000,4.52779],[1149811200000,4.51628],[1149897600000,4.54453],[1149984000000,4.54453],[1150070400000,4.54453],[1150156800000,4.54453],[1150243200000,4.56552],[1150329600000,4.53392],[1150416000000,4.53403],[1150502400000,4.53071],[1150588800000,4.53071],[1150675200000,4.53071],[1150761600000,4.49997],[1150848000000,4.51713],[1150934400000,4.54],[1151020800000,4.53106],[1151107200000,4.49648],[1151193600000,4.49648],[1151280000000,4.49648],[1151366400000,4.51288],[1151452800000,4.49712],[1151539200000,4.49712],[1151625600000,4.51133],[1151712000000,4.54293],[1151798400000,4.54293],[1151884800000,4.54293],[1151971200000,4.54472],[1152057600000,4.54731],[1152144000000,4.56541],[1152230400000,4.53475],[1152316800000,4.53535],[1152403200000,4.53535],[1152489600000,4.53535],[1152576000000,4.49233],[1152662400000,4.47982],[1152748800000,4.44548],[1152835200000,4.45782],[1152921600000,4.4764],[1153008000000,4.4764],[1153094400000,4.4764],[1153180800000,4.46441],[1153267200000,4.45237],[1153353600000,4.43465],[1153440000000,4.45425],[1153526400000,4.46323],[1153612800000,4.46323],[1153699200000,4.46323],[1153785600000,4.42879],[1153872000000,4.42953],[1153958400000,4.43792],[1154044800000,4.4606],[1154131200000,4.44521],[1154217600000,4.44521],[1154304000000,4.44521],[1154390400000,4.49417],[1154476800000,4.45687],[1154563200000,4.47544],[1154649600000,4.48846],[1154736000000,4.4576],[1154822400000,4.4576],[1154908800000,4.4576],[1154995200000,4.48462],[1155081600000,4.51228],[1155168000000,4.51033],[1155254400000,4.5117],[1155340800000,4.49479],[1155427200000,4.49479],[1155513600000,4.49479],[1155600000000,4.47942],[1155686400000,4.46476],[1155772800000,4.50458],[1155859200000,4.52162],[1155945600000,4.49834],[1156032000000,4.49834],[1156118400000,4.49834],[1156204800000,4.51807],[1156291200000,4.51914],[1156377600000,4.54262],[1156464000000,4.54262],[1156550400000,4.54262],[1156636800000,4.54262],[1156723200000,4.54262],[1156809600000,4.55725],[1156896000000,4.55303],[1156982400000,4.56173],[1157068800000,4.56062],[1157155200000,4.57007],[1157241600000,4.57007],[1157328000000,4.57007],[1157414400000,4.5645],[1157500800000,4.54223],[1157587200000,4.54067],[1157673600000,4.57071],[1157760000000,4.53555],[1157846400000,4.53555],[1157932800000,4.53555],[1158019200000,4.50689],[1158105600000,4.51117],[1158192000000,4.4995],[1158278400000,4.5225],[1158364800000,4.50671],[1158451200000,4.50671],[1158537600000,4.50671],[1158624000000,4.5041],[1158710400000,4.49987],[1158796800000,4.4768],[1158883200000,4.49528],[1158969600000,4.53771],[1159056000000,4.53771],[1159142400000,4.53771],[1159228800000,4.52194],[1159315200000,4.53104],[1159401600000,4.52904],[1159488000000,4.54293],[1159574400000,4.52271],[1159660800000,4.52271],[1159747200000,4.52271],[1159833600000,4.50297],[1159920000000,4.51508],[1160006400000,4.47963],[1160092800000,4.48579],[1160179200000,4.49299],[1160265600000,4.49299],[1160352000000,4.49299],[1160438400000,4.49662],[1160524800000,4.47343],[1160611200000,4.4485],[1160697600000,4.4405],[1160784000000,4.44879],[1160870400000,4.44879],[1160956800000,4.44879],[1161043200000,4.44106],[1161129600000,4.44394],[1161216000000,4.43386],[1161302400000,4.44645],[1161388800000,4.50134],[1161475200000,4.50134],[1161561600000,4.50134],[1161648000000,4.47858],[1161734400000,4.46629],[1161820800000,4.47671],[1161907200000,4.48121],[1161993600000,4.4909],[1162080000000,4.4909],[1162166400000,4.4909],[1162252800000,4.50515],[1162339200000,4.47385],[1162425600000,4.45186],[1162512000000,4.44981],[1162598400000,4.47424],[1162684800000,4.47424],[1162771200000,4.47424],[1162857600000,4.44896],[1162944000000,4.47777],[1163030400000,4.46559],[1163116800000,4.45992],[1163203200000,4.47066],[1163289600000,4.47066],[1163376000000,4.47066],[1163462400000,4.4463],[1163548800000,4.43509],[1163635200000,4.43313],[1163721600000,4.43729],[1163808000000,4.40302],[1163894400000,4.40302],[1163980800000,4.40302],[1164067200000,4.41858],[1164153600000,4.40929],[1164240000000,4.43104],[1164326400000,4.42905],[1164412800000,4.45731],[1164499200000,4.45731],[1164585600000,4.45731],[1164672000000,4.45484],[1164758400000,4.46695],[1164844800000,4.44345],[1164931200000,4.42835],[1165017600000,4.41787],[1165104000000,4.41787],[1165190400000,4.41787],[1165276800000,4.41941],[1165363200000,4.42788],[1165449600000,4.41679],[1165536000000,4.39606],[1165622400000,4.39084],[1165708800000,4.39084],[1165795200000,4.39084],[1165881600000,4.39669],[1165968000000,4.38687],[1166054400000,4.38606],[1166140800000,4.37079],[1166227200000,4.36838],[1166313600000,4.36838],[1166400000000,4.36838],[1166486400000,4.3754],[1166572800000,4.36669],[1166659200000,4.40478],[1166745600000,4.39122],[1166832000000,4.37136],[1166918400000,4.37136],[1167004800000,4.37136],[1167091200000,4.37136],[1167177600000,4.37136],[1167264000000,4.34418],[1167350400000,4.35706],[1167436800000,4.35237]], 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: [[1137283200000, 4.353269],[1137283200000, 4.353269],[1139961600000, 4.385664],[1142380800000, 4.368184],[1145059200000, 4.405686],[1147651200000, 4.543002],[1150329600000, 4.536075],[1152921600000, 4.484500],[1155600000000, 4.505767],[1158278400000, 4.529753],[1160870400000, 4.479459],[1163548800000, 4.448283],[1166140800000, 4.386957]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });