$(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: [[1136246400000,3.83093],[1136332800000,3.83093],[1136419200000,3.83093],[1136505600000,3.94777],[1136592000000,3.95222],[1136678400000,3.95222],[1136764800000,3.95222],[1136851200000,3.95222],[1136937600000,3.94657],[1137024000000,3.94497],[1137110400000,3.95236],[1137196800000,3.92466],[1137283200000,3.92466],[1137369600000,3.92466],[1137456000000,3.94693],[1137542400000,3.93691],[1137628800000,3.95858],[1137715200000,3.92409],[1137801600000,3.92879],[1137888000000,3.92879],[1137974400000,3.92879],[1138060800000,4.00742],[1138147200000,4.00114],[1138233600000,4.0109],[1138320000000,3.99243],[1138406400000,3.95907],[1138492800000,3.95907],[1138579200000,3.95907],[1138665600000,3.92247],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,3.88894],[1139270400000,3.88894],[1139356800000,3.88859],[1139443200000,3.88547],[1139529600000,3.88476],[1139616000000,3.88711],[1139702400000,3.88711],[1139788800000,3.88711],[1139875200000,3.8585],[1139961600000,3.85803],[1140048000000,3.85923],[1140134400000,3.8416],[1140220800000,3.8351],[1140307200000,3.8351],[1140393600000,3.8351],[1140480000000,3.8584],[1140566400000,3.85468],[1140652800000,3.84588],[1140739200000,3.87392],[1140825600000,3.85046],[1140912000000,3.85046],[1140998400000,3.85046],[1141084800000,3.82763],[1141171200000,3.82918],[1141257600000,3.86626],[1141344000000,3.8477],[1141430400000,3.88412],[1141516800000,3.88412],[1141603200000,3.88412],[1141689600000,3.88837],[1141776000000,3.8525],[1141862400000,3.8525],[1141948800000,3.85008],[1142035200000,3.84263],[1142121600000,3.84263],[1142208000000,3.84263],[1142294400000,3.83821],[1142380800000,3.85026],[1142467200000,3.87985],[1142553600000,3.88851],[1142640000000,3.91066],[1142726400000,3.91066],[1142812800000,3.91066],[1142899200000,3.91161],[1142985600000,3.89676],[1143072000000,3.87319],[1143158400000,3.86035],[1143244800000,3.83451],[1143331200000,3.83451],[1143417600000,3.83451],[1143504000000,3.8598],[1143590400000,3.88318],[1143676800000,3.85342],[1143763200000,3.87939],[1143849600000,3.86844],[1143936000000,3.86844],[1144022400000,3.86844],[1144108800000,3.85509],[1144195200000,3.90381],[1144281600000,3.92142],[1144368000000,3.93691],[1144454400000,3.90328],[1144540800000,3.90328],[1144627200000,3.90328],[1144713600000,3.87789],[1144800000000,3.87489],[1144886400000,3.89338],[1144972800000,3.88887],[1145059200000,3.88887],[1145145600000,3.88887],[1145232000000,3.88887],[1145318400000,3.88887],[1145404800000,3.95478],[1145491200000,3.9742],[1145577600000,3.96536],[1145664000000,3.94737],[1145750400000,3.94737],[1145836800000,3.94737],[1145923200000,3.94737],[1146009600000,3.98819],[1146096000000,3.97732],[1146182400000,3.96425],[1146268800000,4.02927],[1146355200000,4.02927],[1146441600000,4.02927],[1146528000000,4.02927],[1146614400000,4.02927],[1146700800000,4.07995],[1146787200000,4.07208],[1146873600000,4.10339],[1146960000000,4.10339],[1147046400000,4.10339],[1147132800000,4.10339],[1147219200000,4.10339],[1147305600000,4.13918],[1147392000000,4.11851],[1147478400000,4.20855],[1147564800000,4.20855],[1147651200000,4.20855],[1147737600000,4.17637],[1147824000000,4.16914],[1147910400000,4.19217],[1147996800000,4.16243],[1148083200000,4.14327],[1148169600000,4.14327],[1148256000000,4.14327],[1148342400000,4.1526],[1148428800000,4.1791],[1148515200000,4.18451],[1148601600000,4.14017],[1148688000000,4.14554],[1148774400000,4.14554],[1148860800000,4.14554],[1148947200000,4.1255],[1149033600000,4.16021],[1149120000000,4.1656],[1149206400000,4.11548],[1149292800000,4.14075],[1149379200000,4.14075],[1149465600000,4.14075],[1149552000000,4.19554],[1149638400000,4.15667],[1149724800000,4.13658],[1149811200000,4.11806],[1149897600000,4.10611],[1149984000000,4.10611],[1150070400000,4.10611],[1150156800000,4.10611],[1150243200000,4.09123],[1150329600000,4.08941],[1150416000000,4.1026],[1150502400000,4.10536],[1150588800000,4.10536],[1150675200000,4.10536],[1150761600000,4.083],[1150848000000,4.06241],[1150934400000,4.08449],[1151020800000,4.06364],[1151107200000,4.03651],[1151193600000,4.03651],[1151280000000,4.03651],[1151366400000,4.0579],[1151452800000,4.05025],[1151539200000,4.05025],[1151625600000,4.04446],[1151712000000,4.09652],[1151798400000,4.09652],[1151884800000,4.09652],[1151971200000,4.1208],[1152057600000,4.12034],[1152144000000,4.12131],[1152230400000,4.10021],[1152316800000,4.11274],[1152403200000,4.11274],[1152489600000,4.11274],[1152576000000,4.10909],[1152662400000,4.10576],[1152748800000,4.10309],[1152835200000,4.10337],[1152921600000,4.09837],[1153008000000,4.09837],[1153094400000,4.09837],[1153180800000,4.05247],[1153267200000,4.04588],[1153353600000,4.01696],[1153440000000,4.06489],[1153526400000,4.07652],[1153612800000,4.07652],[1153699200000,4.07652],[1153785600000,4.05161],[1153872000000,4.05489],[1153958400000,4.0343],[1154044800000,4.08574],[1154131200000,4.06698],[1154217600000,4.06698],[1154304000000,4.06698],[1154390400000,4.10318],[1154476800000,4.09931],[1154563200000,4.10896],[1154649600000,4.09908],[1154736000000,4.09402],[1154822400000,4.09402],[1154908800000,4.09402],[1154995200000,4.12802],[1155081600000,4.11977],[1155168000000,4.12841],[1155254400000,4.1177],[1155340800000,4.08367],[1155427200000,4.08367],[1155513600000,4.08367],[1155600000000,4.06313],[1155686400000,4.0628],[1155772800000,4.09227],[1155859200000,4.12187],[1155945600000,4.08712],[1156032000000,4.08712],[1156118400000,4.08712],[1156204800000,4.1331],[1156291200000,4.10094],[1156377600000,4.09523],[1156464000000,4.09523],[1156550400000,4.09523],[1156636800000,4.09523],[1156723200000,4.09523],[1156809600000,4.09062],[1156896000000,4.10044],[1156982400000,4.10521],[1157068800000,4.12022],[1157155200000,4.09891],[1157241600000,4.09891],[1157328000000,4.09891],[1157414400000,4.10464],[1157500800000,4.09201],[1157587200000,4.07755],[1157673600000,4.06343],[1157760000000,4.05896],[1157846400000,4.05896],[1157932800000,4.05896],[1158019200000,4.06539],[1158105600000,4.06334],[1158192000000,4.02837],[1158278400000,4.04655],[1158364800000,4.01409],[1158451200000,4.01409],[1158537600000,4.01409],[1158624000000,4.02582],[1158710400000,4.01828],[1158796800000,4.03237],[1158883200000,4.0468],[1158969600000,4.09346],[1159056000000,4.09346],[1159142400000,4.09346],[1159228800000,4.08117],[1159315200000,4.06375],[1159401600000,4.05509],[1159488000000,4.05358],[1159574400000,4.02575],[1159660800000,4.02575],[1159747200000,4.02575],[1159833600000,4.04389],[1159920000000,4.05867],[1160006400000,4.03161],[1160092800000,4.04362],[1160179200000,4.02703],[1160265600000,4.02703],[1160352000000,4.02703],[1160438400000,4.00536],[1160524800000,3.97994],[1160611200000,3.97578],[1160697600000,3.97198],[1160784000000,3.978],[1160870400000,3.978],[1160956800000,3.978],[1161043200000,3.97039],[1161129600000,3.979],[1161216000000,3.98454],[1161302400000,3.99025],[1161388800000,4.01594],[1161475200000,4.01594],[1161561600000,4.01594],[1161648000000,3.98691],[1161734400000,3.97864],[1161820800000,3.99152],[1161907200000,4.01266],[1161993600000,4.02546],[1162080000000,4.02546],[1162166400000,4.02546],[1162252800000,4.04362],[1162339200000,4.03568],[1162425600000,4.05685],[1162512000000,4.05646],[1162598400000,4.04533],[1162684800000,4.04533],[1162771200000,4.04533],[1162857600000,4.01786],[1162944000000,4.03513],[1163030400000,4.04456],[1163116800000,4.04709],[1163203200000,4.07727],[1163289600000,4.07727],[1163376000000,4.07727],[1163462400000,4.06548],[1163548800000,4.05874],[1163635200000,4.04],[1163721600000,4.04708],[1163808000000,4.02978],[1163894400000,4.02978],[1163980800000,4.02978],[1164067200000,4.07126],[1164153600000,4.06143],[1164240000000,4.09685],[1164326400000,4.1288],[1164412800000,4.17313],[1164499200000,4.17313],[1164585600000,4.17313],[1164672000000,4.17696],[1164758400000,4.18457],[1164844800000,4.18169],[1164931200000,4.18824],[1165017600000,4.21066],[1165104000000,4.21066],[1165190400000,4.21066],[1165276800000,4.21858],[1165363200000,4.23806],[1165449600000,4.21914],[1165536000000,4.22991],[1165622400000,4.21898],[1165708800000,4.21898],[1165795200000,4.21898],[1165881600000,4.18094],[1165968000000,4.19903],[1166054400000,4.19963],[1166140800000,4.16711],[1166227200000,4.14254],[1166313600000,4.14254],[1166400000000,4.14254],[1166486400000,4.13492],[1166572800000,4.14677],[1166659200000,4.15706],[1166745600000,4.151],[1166832000000,4.15619],[1166918400000,4.15619],[1167004800000,4.15619],[1167091200000,4.15619],[1167177600000,4.15619],[1167264000000,4.13831],[1167350400000,4.14271],[1167436800000,4.13893]], 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, 3.939028],[1137283200000, 3.939028],[1139961600000, 3.862285],[1142380800000, 3.866996],[1145059200000, 3.923167],[1147651200000, 4.133830],[1150329600000, 4.097995],[1152921600000, 4.085293],[1155600000000, 4.098239],[1158278400000, 4.062013],[1160870400000, 4.007716],[1163548800000, 4.079433],[1166140800000, 4.178262]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });