$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1136246400000,0.393547],[1136332800000,0.393547],[1136419200000,0.393547],[1136505600000,0.39359],[1136592000000,0.393612],[1136678400000,0.393612],[1136764800000,0.393612],[1136851200000,0.393612],[1136937600000,0.393544],[1137024000000,0.393403],[1137110400000,0.393367],[1137196800000,0.393327],[1137283200000,0.393327],[1137369600000,0.393327],[1137456000000,0.39337],[1137542400000,0.393324],[1137628800000,0.393272],[1137715200000,0.393186],[1137801600000,0.393097],[1137888000000,0.393097],[1137974400000,0.393097],[1138060800000,0.392859],[1138147200000,0.3927],[1138233600000,0.392413],[1138320000000,0.392251],[1138406400000,0.391919],[1138492800000,0.391919],[1138579200000,0.391919],[1138665600000,0.391388],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,0.390516],[1139270400000,0.390516],[1139356800000,0.390543],[1139443200000,0.390507],[1139529600000,0.390522],[1139616000000,0.390501],[1139702400000,0.390501],[1139788800000,0.390501],[1139875200000,0.390525],[1139961600000,0.390477],[1140048000000,0.390395],[1140134400000,0.390311],[1140220800000,0.390269],[1140307200000,0.390269],[1140393600000,0.390269],[1140480000000,0.390296],[1140566400000,0.39023],[1140652800000,0.390133],[1140739200000,0.389998],[1140825600000,0.389832],[1140912000000,0.389832],[1140998400000,0.389832],[1141084800000,0.389673],[1141171200000,0.389417],[1141257600000,0.389288],[1141344000000,0.389147],[1141430400000,0.388746],[1141516800000,0.388746],[1141603200000,0.388746],[1141689600000,0.388758],[1141776000000,0.388602],[1141862400000,0.388602],[1141948800000,0.38865],[1142035200000,0.388689],[1142121600000,0.388689],[1142208000000,0.388689],[1142294400000,0.388725],[1142380800000,0.38874],[1142467200000,0.388755],[1142553600000,0.388704],[1142640000000,0.3885],[1142726400000,0.3885],[1142812800000,0.3885],[1142899200000,0.38842],[1142985600000,0.388396],[1143072000000,0.388357],[1143158400000,0.388336],[1143244800000,0.388348],[1143331200000,0.388348],[1143417600000,0.388348],[1143504000000,0.388384],[1143590400000,0.38842],[1143676800000,0.388351],[1143763200000,0.388351],[1143849600000,0.388023],[1143936000000,0.388023],[1144022400000,0.388023],[1144108800000,0.387957],[1144195200000,0.387915],[1144281600000,0.387981],[1144368000000,0.387993],[1144454400000,0.387918],[1144540800000,0.387918],[1144627200000,0.387918],[1144713600000,0.387972],[1144800000000,0.387999],[1144886400000,0.387987],[1144972800000,0.388038],[1145059200000,0.38796],[1145145600000,0.38796],[1145232000000,0.38796],[1145318400000,0.387889],[1145404800000,0.38785],[1145491200000,0.387862],[1145577600000,0.387829],[1145664000000,0.387847],[1145750400000,0.387847],[1145836800000,0.387847],[1145923200000,0.387847],[1146009600000,0.387921],[1146096000000,0.38793],[1146182400000,0.387981],[1146268800000,0.388017],[1146355200000,0.388017],[1146441600000,0.388017],[1146528000000,0.388017],[1146614400000,0.388017],[1146700800000,0.388112],[1146787200000,0.388151],[1146873600000,0.388169],[1146960000000,0.388169],[1147046400000,0.388169],[1147132800000,0.388169],[1147219200000,0.388169],[1147305600000,0.388202],[1147392000000,0.388226],[1147478400000,0.388249],[1147564800000,0.388249],[1147651200000,0.388249],[1147737600000,0.388309],[1147824000000,0.388318],[1147910400000,0.388238],[1147996800000,0.388169],[1148083200000,0.388005],[1148169600000,0.388005],[1148256000000,0.388005],[1148342400000,0.387725],[1148428800000,0.387074],[1148515200000,0.385829],[1148601600000,0.384048],[1148688000000,0.382727],[1148774400000,0.382727],[1148860800000,0.382727],[1148947200000,0.382139],[1149033600000,0.382072],[1149120000000,0.382115],[1149206400000,0.382165],[1149292800000,0.382063],[1149379200000,0.382063],[1149465600000,0.382063],[1149552000000,0.382029],[1149638400000,0.381873],[1149724800000,0.381726],[1149811200000,0.38148],[1149897600000,0.3811],[1149984000000,0.3811],[1150070400000,0.3811],[1150156800000,0.3811],[1150243200000,0.380905],[1150329600000,0.380813],[1150416000000,0.380606],[1150502400000,0.380563],[1150588800000,0.380563],[1150675200000,0.380563],[1150761600000,0.380475],[1150848000000,0.38044],[1150934400000,0.380409],[1151020800000,0.380371],[1151107200000,0.38026],[1151193600000,0.38026],[1151280000000,0.38026],[1151366400000,0.380108],[1151452800000,0.380062],[1151539200000,0.380062],[1151625600000,0.379968],[1151712000000,0.379945],[1151798400000,0.379945],[1151884800000,0.379945],[1151971200000,0.379908],[1152057600000,0.379896],[1152144000000,0.379888],[1152230400000,0.379931],[1152316800000,0.379965],[1152403200000,0.379965],[1152489600000,0.379965],[1152576000000,0.379945],[1152662400000,0.379919],[1152748800000,0.379982],[1152835200000,0.380028],[1152921600000,0.380045],[1153008000000,0.380045],[1153094400000,0.380045],[1153180800000,0.380085],[1153267200000,0.380174],[1153353600000,0.380202],[1153440000000,0.380177],[1153526400000,0.380114],[1153612800000,0.380114],[1153699200000,0.380114],[1153785600000,0.379965],[1153872000000,0.379716],[1153958400000,0.379451],[1154044800000,0.379346],[1154131200000,0.379249],[1154217600000,0.379249],[1154304000000,0.379249],[1154390400000,0.378995],[1154476800000,0.378887],[1154563200000,0.378813],[1154649600000,0.378723],[1154736000000,0.378652],[1154822400000,0.378652],[1154908800000,0.378652],[1154995200000,0.378612],[1155081600000,0.378572],[1155168000000,0.378586],[1155254400000,0.378637],[1155340800000,0.378711],[1155427200000,0.378711],[1155513600000,0.378711],[1155600000000,0.378813],[1155686400000,0.378964],[1155772800000,0.379089],[1155859200000,0.379141],[1155945600000,0.379183],[1156032000000,0.379183],[1156118400000,0.379183],[1156204800000,0.379166],[1156291200000,0.379143],[1156377600000,0.379178],[1156464000000,0.379178],[1156550400000,0.379178],[1156636800000,0.379178],[1156723200000,0.379178],[1156809600000,0.379135],[1156896000000,0.37916],[1156982400000,0.379212],[1157068800000,0.379212],[1157155200000,0.379294],[1157241600000,0.379294],[1157328000000,0.379294],[1157414400000,0.379377],[1157500800000,0.3794],[1157587200000,0.379462],[1157673600000,0.379425],[1157760000000,0.37936],[1157846400000,0.37936],[1157932800000,0.37936],[1158019200000,0.379323],[1158105600000,0.379263],[1158192000000,0.379195],[1158278400000,0.379175],[1158364800000,0.37916],[1158451200000,0.37916],[1158537600000,0.37916],[1158624000000,0.379206],[1158710400000,0.379229],[1158796800000,0.379252],[1158883200000,0.379297],[1158969600000,0.379346],[1159056000000,0.379346],[1159142400000,0.379346],[1159228800000,0.379405],[1159315200000,0.379494],[1159401600000,0.379616],[1159488000000,0.379888],[1159574400000,0.379954],[1159660800000,0.379954],[1159747200000,0.379954],[1159833600000,0.380045],[1159920000000,0.380122],[1160006400000,0.380288],[1160092800000,0.380409],[1160179200000,0.38048],[1160265600000,0.38048],[1160352000000,0.38048],[1160438400000,0.380592],[1160524800000,0.380681],[1160611200000,0.380804],[1160697600000,0.380905],[1160784000000,0.381043],[1160870400000,0.381043],[1160956800000,0.381043],[1161043200000,0.381092],[1161129600000,0.381152],[1161216000000,0.381282],[1161302400000,0.381388],[1161388800000,0.381463],[1161475200000,0.381463],[1161561600000,0.381463],[1161648000000,0.381529],[1161734400000,0.381555],[1161820800000,0.381633],[1161907200000,0.38161],[1161993600000,0.381668],[1162080000000,0.381668],[1162166400000,0.381668],[1162252800000,0.3817],[1162339200000,0.381789],[1162425600000,0.38189],[1162512000000,0.381957],[1162598400000,0.381988],[1162684800000,0.381988],[1162771200000,0.381988],[1162857600000,0.382029],[1162944000000,0.382107],[1163030400000,0.382144],[1163116800000,0.382211],[1163203200000,0.382324],[1163289600000,0.382324],[1163376000000,0.382324],[1163462400000,0.382422],[1163548800000,0.382524],[1163635200000,0.382645],[1163721600000,0.382619],[1163808000000,0.382593],[1163894400000,0.382593],[1163980800000,0.382593],[1164067200000,0.3825],[1164153600000,0.382503],[1164240000000,0.382567],[1164326400000,0.382596],[1164412800000,0.382683],[1164499200000,0.382683],[1164585600000,0.382683],[1164672000000,0.382747],[1164758400000,0.382845],[1164844800000,0.382927],[1164931200000,0.382941],[1165017600000,0.383072],[1165104000000,0.383072],[1165190400000,0.383072],[1165276800000,0.383203],[1165363200000,0.383264],[1165449600000,0.383395],[1165536000000,0.383698],[1165622400000,0.383887],[1165708800000,0.383887],[1165795200000,0.383887],[1165881600000,0.384563],[1165968000000,0.384926],[1166054400000,0.38514],[1166140800000,0.385396],[1166227200000,0.386],[1166313600000,0.386],[1166400000000,0.386],[1166486400000,0.386307],[1166572800000,0.386941],[1166659200000,0.387549],[1166745600000,0.388366],[1166832000000,0.388991],[1166918400000,0.388991],[1167004800000,0.388991],[1167091200000,0.389546],[1167177600000,0.390004],[1167264000000,0.390468],[1167350400000,0.390915],[1167436800000,0.391321]], 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, 0.393062],[1137283200000, 0.393062],[1139961600000, 0.390280],[1142380800000, 0.388621],[1145059200000, 0.387941],[1147651200000, 0.386982],[1150329600000, 0.380956],[1152921600000, 0.379889],[1155600000000, 0.378941],[1158278400000, 0.379355],[1160870400000, 0.380989],[1163548800000, 0.382393],[1166140800000, 0.386126]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });