$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1136246400000,0.746085],[1136332800000,0.746085],[1136419200000,0.746085],[1136505600000,0.769548],[1136592000000,0.770158],[1136678400000,0.770158],[1136764800000,0.770158],[1136851200000,0.770158],[1136937600000,0.763353],[1137024000000,0.76011],[1137110400000,0.75725],[1137196800000,0.755476],[1137283200000,0.755476],[1137369600000,0.755476],[1137456000000,0.759916],[1137542400000,0.75222],[1137628800000,0.753708],[1137715200000,0.750014],[1137801600000,0.75383],[1137888000000,0.75383],[1137974400000,0.75383],[1138060800000,0.77022],[1138147200000,0.770241],[1138233600000,0.773063],[1138320000000,0.766919],[1138406400000,0.759998],[1138492800000,0.759998],[1138579200000,0.759998],[1138665600000,0.750712],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,0.751883],[1139270400000,0.751883],[1139356800000,0.751428],[1139443200000,0.752665],[1139529600000,0.754271],[1139616000000,0.748542],[1139702400000,0.748542],[1139788800000,0.748542],[1139875200000,0.740982],[1139961600000,0.738507],[1140048000000,0.738743],[1140134400000,0.738657],[1140220800000,0.743277],[1140307200000,0.743277],[1140393600000,0.743277],[1140480000000,0.748018],[1140566400000,0.746481],[1140652800000,0.74426],[1140739200000,0.75047],[1140825600000,0.746595],[1140912000000,0.746595],[1140998400000,0.746595],[1141084800000,0.745687],[1141171200000,0.747367],[1141257600000,0.751871],[1141344000000,0.751621],[1141430400000,0.757626],[1141516800000,0.757626],[1141603200000,0.757626],[1141689600000,0.76057],[1141776000000,0.753185],[1141862400000,0.753185],[1141948800000,0.750246],[1142035200000,0.754887],[1142121600000,0.754887],[1142208000000,0.754887],[1142294400000,0.754888],[1142380800000,0.758008],[1142467200000,0.76219],[1142553600000,0.761903],[1142640000000,0.771444],[1142726400000,0.771444],[1142812800000,0.771444],[1142899200000,0.772977],[1142985600000,0.77112],[1143072000000,0.767275],[1143158400000,0.764124],[1143244800000,0.758482],[1143331200000,0.758482],[1143417600000,0.758482],[1143504000000,0.762222],[1143590400000,0.768712],[1143676800000,0.763507],[1143763200000,0.765762],[1143849600000,0.767182],[1143936000000,0.767182],[1144022400000,0.767182],[1144108800000,0.769509],[1144195200000,0.782545],[1144281600000,0.785178],[1144368000000,0.787831],[1144454400000,0.780903],[1144540800000,0.780903],[1144627200000,0.780903],[1144713600000,0.7776],[1144800000000,0.781467],[1144886400000,0.782378],[1144972800000,0.777408],[1145059200000,0.777408],[1145145600000,0.777408],[1145232000000,0.777408],[1145318400000,0.777408],[1145404800000,0.787785],[1145491200000,0.79825],[1145577600000,0.80035],[1145664000000,0.792946],[1145750400000,0.792946],[1145836800000,0.792946],[1145923200000,0.792946],[1146009600000,0.79957],[1146096000000,0.804749],[1146182400000,0.804139],[1146268800000,0.81619],[1146355200000,0.81619],[1146441600000,0.81619],[1146528000000,0.81619],[1146614400000,0.81619],[1146700800000,0.821247],[1146787200000,0.820723],[1146873600000,0.824957],[1146960000000,0.824957],[1147046400000,0.824957],[1147132800000,0.824957],[1147219200000,0.824957],[1147305600000,0.830874],[1147392000000,0.827417],[1147478400000,0.839921],[1147564800000,0.839921],[1147651200000,0.839921],[1147737600000,0.831627],[1147824000000,0.826006],[1147910400000,0.831787],[1147996800000,0.822662],[1148083200000,0.826052],[1148169600000,0.826052],[1148256000000,0.826052],[1148342400000,0.82504],[1148428800000,0.828928],[1148515200000,0.829309],[1148601600000,0.824114],[1148688000000,0.826088],[1148774400000,0.826088],[1148860800000,0.826088],[1148947200000,0.823939],[1149033600000,0.828587],[1149120000000,0.831468],[1149206400000,0.826322],[1149292800000,0.832196],[1149379200000,0.832196],[1149465600000,0.832196],[1149552000000,0.843239],[1149638400000,0.835456],[1149724800000,0.827528],[1149811200000,0.821246],[1149897600000,0.817859],[1149984000000,0.817859],[1150070400000,0.817859],[1150156800000,0.817859],[1150243200000,0.813058],[1150329600000,0.809534],[1150416000000,0.811475],[1150502400000,0.812767],[1150588800000,0.812767],[1150675200000,0.812767],[1150761600000,0.809427],[1150848000000,0.802194],[1150934400000,0.80606],[1151020800000,0.797128],[1151107200000,0.797362],[1151193600000,0.797362],[1151280000000,0.797362],[1151366400000,0.800064],[1151452800000,0.798934],[1151539200000,0.798934],[1151625600000,0.802683],[1151712000000,0.80898],[1151798400000,0.80898],[1151884800000,0.80898],[1151971200000,0.809392],[1152057600000,0.810471],[1152144000000,0.812241],[1152230400000,0.810074],[1152316800000,0.811378],[1152403200000,0.811378],[1152489600000,0.811378],[1152576000000,0.806381],[1152662400000,0.804916],[1152748800000,0.808381],[1152835200000,0.808459],[1152921600000,0.808077],[1153008000000,0.808077],[1153094400000,0.808077],[1153180800000,0.801164],[1153267200000,0.798052],[1153353600000,0.790991],[1153440000000,0.804931],[1153526400000,0.807185],[1153612800000,0.807185],[1153699200000,0.807185],[1153785600000,0.80207],[1153872000000,0.803675],[1153958400000,0.801164],[1154044800000,0.813531],[1154131200000,0.811331],[1154217600000,0.811331],[1154304000000,0.811331],[1154390400000,0.820115],[1154476800000,0.818248],[1154563200000,0.820749],[1154649600000,0.820076],[1154736000000,0.819428],[1154822400000,0.819428],[1154908800000,0.819428],[1154995200000,0.823666],[1155081600000,0.819735],[1155168000000,0.818615],[1155254400000,0.816703],[1155340800000,0.810831],[1155427200000,0.810831],[1155513600000,0.810831],[1155600000000,0.803025],[1155686400000,0.800364],[1155772800000,0.805946],[1155859200000,0.805137],[1155945600000,0.800918],[1156032000000,0.800918],[1156118400000,0.800918],[1156204800000,0.810648],[1156291200000,0.805987],[1156377600000,0.804434],[1156464000000,0.804434],[1156550400000,0.804434],[1156636800000,0.804434],[1156723200000,0.804434],[1156809600000,0.80453],[1156896000000,0.804233],[1156982400000,0.802565],[1157068800000,0.803237],[1157155200000,0.798395],[1157241600000,0.798395],[1157328000000,0.798395],[1157414400000,0.798703],[1157500800000,0.795505],[1157587200000,0.793036],[1157673600000,0.78524],[1157760000000,0.781172],[1157846400000,0.781172],[1157932800000,0.781172],[1158019200000,0.772757],[1158105600000,0.773725],[1158192000000,0.76372],[1158278400000,0.771137],[1158364800000,0.773286],[1158451200000,0.773286],[1158537600000,0.773286],[1158624000000,0.772163],[1158710400000,0.772378],[1158796800000,0.773207],[1158883200000,0.776374],[1158969600000,0.775578],[1159056000000,0.775578],[1159142400000,0.775578],[1159228800000,0.768561],[1159315200000,0.771152],[1159401600000,0.775005],[1159488000000,0.780745],[1159574400000,0.776357],[1159660800000,0.776357],[1159747200000,0.776357],[1159833600000,0.767866],[1159920000000,0.76816],[1160006400000,0.762595],[1160092800000,0.766783],[1160179200000,0.758503],[1160265600000,0.758503],[1160352000000,0.758503],[1160438400000,0.755881],[1160524800000,0.757289],[1160611200000,0.752461],[1160697600000,0.748628],[1160784000000,0.751943],[1160870400000,0.751943],[1160956800000,0.751943],[1161043200000,0.746965],[1161129600000,0.74662],[1161216000000,0.747753],[1161302400000,0.748384],[1161388800000,0.757365],[1161475200000,0.757365],[1161561600000,0.757365],[1161648000000,0.752526],[1161734400000,0.755257],[1161820800000,0.761921],[1161907200000,0.771012],[1161993600000,0.770655],[1162080000000,0.770655],[1162166400000,0.770655],[1162252800000,0.770635],[1162339200000,0.769501],[1162425600000,0.776132],[1162512000000,0.782159],[1162598400000,0.781588],[1162684800000,0.781588],[1162771200000,0.781588],[1162857600000,0.777422],[1162944000000,0.780666],[1163030400000,0.78271],[1163116800000,0.785031],[1163203200000,0.792186],[1163289600000,0.792186],[1163376000000,0.792186],[1163462400000,0.790429],[1163548800000,0.788617],[1163635200000,0.783405],[1163721600000,0.786381],[1163808000000,0.780221],[1163894400000,0.780221],[1163980800000,0.780221],[1164067200000,0.784883],[1164153600000,0.782854],[1164240000000,0.788588],[1164326400000,0.791921],[1164412800000,0.799321],[1164499200000,0.799321],[1164585600000,0.799321],[1164672000000,0.800891],[1164758400000,0.801743],[1164844800000,0.805173],[1164931200000,0.816312],[1165017600000,0.819384],[1165104000000,0.819384],[1165190400000,0.819384],[1165276800000,0.824011],[1165363200000,0.828063],[1165449600000,0.824016],[1165536000000,0.829574],[1165622400000,0.825866],[1165708800000,0.825866],[1165795200000,0.825866],[1165881600000,0.819304],[1165968000000,0.822457],[1166054400000,0.82174],[1166140800000,0.817418],[1166227200000,0.811094],[1166313600000,0.811094],[1166400000000,0.811094],[1166486400000,0.812305],[1166572800000,0.813914],[1166659200000,0.816997],[1166745600000,0.818258],[1166832000000,0.814719],[1166918400000,0.814719],[1167004800000,0.814719],[1167091200000,0.814719],[1167177600000,0.814719],[1167264000000,0.807644],[1167350400000,0.807571],[1167436800000,0.807338]], 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.759451],[1137283200000, 0.759451],[1139961600000, 0.746486],[1142380800000, 0.760260],[1145059200000, 0.786560],[1147651200000, 0.826510],[1150329600000, 0.814439],[1152921600000, 0.807314],[1155600000000, 0.810195],[1158278400000, 0.780277],[1160870400000, 0.759640],[1163548800000, 0.787282],[1166140800000, 0.817652]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });