$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1168041600000,1.70598],[1168128000000,1.70598],[1168214400000,1.70598],[1168300800000,1.70598],[1168387200000,1.70318],[1168473600000,1.68014],[1168560000000,1.69049],[1168646400000,1.68103],[1168732800000,1.68103],[1168819200000,1.68103],[1168905600000,1.68899],[1168992000000,1.68468],[1169078400000,1.67451],[1169164800000,1.68173],[1169251200000,1.69924],[1169337600000,1.69924],[1169424000000,1.69924],[1169510400000,1.69821],[1169596800000,1.70601],[1169683200000,1.69005],[1169769600000,1.68156],[1169856000000,1.66017],[1169942400000,1.66017],[1170028800000,1.66017],[1170115200000,1.66075],[1170201600000,1.66329],[1170288000000,1.66567],[1170374400000,1.68601],[1170460800000,1.68471],[1170547200000,1.68471],[1170633600000,1.68471],[1170720000000,1.6829],[1170806400000,1.693],[1170892800000,1.69534],[1170979200000,1.69241],[1171065600000,1.68948],[1171152000000,1.68948],[1171238400000,1.68948],[1171324800000,1.66916],[1171411200000,1.68187],[1171497600000,1.6875],[1171584000000,1.7016],[1171670400000,1.6957],[1171756800000,1.6957],[1171843200000,1.6957],[1171929600000,1.70182],[1172016000000,1.70513],[1172102400000,1.70815],[1172188800000,1.70748],[1172275200000,1.70879],[1172361600000,null],[1172448000000,1.70879],[1172534400000,1.70703],[1172620800000,1.70751],[1172707200000,1.70275],[1172793600000,1.70308],[1172880000000,1.70405],[1172966400000,1.70405],[1173052800000,1.70405],[1173139200000,1.68975],[1173225600000,1.69733],[1173312000000,1.69764],[1173398400000,1.69764],[1173484800000,1.69764],[1173571200000,1.69764],[1173657600000,1.69764],[1173744000000,1.71236],[1173830400000,1.71393],[1173916800000,1.70572],[1174003200000,1.7148],[1174089600000,1.72852],[1174176000000,1.72852],[1174262400000,1.72852],[1174348800000,1.7365],[1174435200000,1.73407],[1174521600000,1.73265],[1174608000000,1.74273],[1174694400000,1.73636],[1174780800000,1.73636],[1174867200000,1.73636],[1174953600000,1.73092],[1175040000000,1.74144],[1175126400000,1.73569],[1175212800000,1.74245],[1175299200000,1.73932],[1175385600000,1.73932],[1175472000000,1.73932],[1175558400000,1.7512],[1175644800000,1.75052],[1175731200000,1.75091],[1175817600000,1.75938],[1175904000000,1.75938],[1175990400000,1.75938],[1176076800000,1.75938],[1176163200000,1.75938],[1176249600000,1.76368],[1176336000000,1.76995],[1176422400000,1.77382],[1176508800000,1.78053],[1176595200000,1.78053],[1176681600000,1.78053],[1176768000000,1.79223],[1176854400000,1.79299],[1176940800000,1.80062],[1177027200000,1.8029],[1177113600000,1.81212],[1177200000000,1.81212],[1177286400000,1.81212],[1177372800000,1.81128],[1177459200000,1.81108],[1177545600000,1.82039],[1177632000000,1.81909],[1177718400000,1.82335],[1177804800000,1.82335],[1177891200000,1.82335],[1177977600000,1.82335],[1178064000000,1.82335],[1178150400000,1.82335],[1178236800000,1.82912],[1178323200000,1.82602],[1178409600000,1.82602],[1178496000000,1.82602],[1178582400000,1.83775],[1178668800000,1.82625],[1178755200000,1.82625],[1178841600000,1.81515],[1178928000000,1.80237],[1179014400000,1.80237],[1179100800000,1.80237],[1179187200000,1.81743],[1179273600000,1.80707],[1179360000000,1.80877],[1179446400000,1.80485],[1179532800000,1.79708],[1179619200000,1.79708],[1179705600000,1.79708],[1179792000000,1.80109],[1179878400000,1.79714],[1179964800000,1.79701],[1180051200000,1.78717],[1180137600000,1.78132],[1180224000000,1.78132],[1180310400000,1.78132],[1180396800000,1.78132],[1180483200000,1.78775],[1180569600000,1.77012],[1180656000000,1.78071],[1180742400000,1.77855],[1180828800000,1.77855],[1180915200000,1.77855],[1181001600000,1.79372],[1181088000000,1.79239],[1181174400000,1.78104],[1181260800000,1.77352],[1181347200000,1.75243],[1181433600000,1.75243],[1181520000000,1.75243],[1181606400000,null],[1181692800000,1.76042],[1181779200000,1.7492],[1181865600000,null],[1181952000000,null],[1182038400000,1.76407],[1182124800000,1.76407],[1182211200000,1.78081],[1182297600000,1.78278],[1182384000000,null],[1182470400000,1.78241],[1182556800000,1.79664],[1182643200000,1.79664],[1182729600000,1.79664],[1182816000000,1.79428],[1182902400000,1.79004],[1182988800000,1.78443],[1183075200000,1.78443],[1183161600000,1.78443],[1183248000000,1.78443],[1183334400000,1.78443],[1183420800000,1.82639],[1183507200000,1.82858],[1183593600000,1.82906],[1183680000000,1.82992],[1183766400000,1.82315],[1183852800000,1.82315],[1183939200000,1.82315],[1184025600000,1.83322],[1184112000000,1.83083],[1184198400000,1.84005],[1184284800000,1.85278],[1184371200000,1.85662],[1184457600000,1.85662],[1184544000000,1.85662],[1184630400000,1.85619],[1184716800000,1.85395],[1184803200000,1.85098],[1184889600000,1.85763],[1184976000000,1.85544],[1185062400000,1.85544],[1185148800000,1.85544],[1185235200000,1.85327],[1185321600000,1.85764],[1185408000000,1.83327],[1185494400000,1.82071],[1185580800000,1.81229],[1185667200000,1.81229],[1185753600000,1.81229],[1185840000000,null],[1185926400000,1.82688],[1186012800000,1.81431],[1186099200000,1.82042],[1186185600000,1.8262],[1186272000000,1.8262],[1186358400000,1.8262],[1186444800000,1.84187],[1186531200000,1.84041],[1186617600000,1.84637],[1186704000000,1.83562],[1186790400000,1.82424],[1186876800000,1.82424],[1186963200000,1.82424],[1187049600000,1.82592],[1187136000000,1.81108],[1187222400000,1.77682],[1187308800000,1.76382],[1187395200000,1.77225],[1187481600000,1.77225],[1187568000000,1.77225],[1187654400000,1.7733],[1187740800000,1.77395],[1187827200000,1.77725],[1187913600000,1.78978],[1188000000000,1.78978],[1188086400000,1.78978],[1188172800000,1.78978],[1188259200000,1.80251],[1188345600000,1.80071],[1188432000000,1.79458],[1188518400000,1.79589],[1188604800000,1.81359],[1188691200000,1.81359],[1188777600000,1.81359],[1188864000000,1.80218],[1188950400000,1.79324],[1189036800000,1.79514],[1189123200000,1.80703],[1189209600000,1.81625],[1189296000000,1.81625],[1189382400000,1.81625],[1189468800000,1.82785],[1189555200000,1.84223],[1189641600000,1.85496],[1189728000000,1.85587],[1189814400000,1.84746],[1189900800000,1.84746],[1189987200000,1.84746],[1190073600000,1.85237],[1190160000000,1.85079],[1190246400000,1.8695],[1190332800000,1.8793],[1190419200000,1.88414],[1190505600000,1.88414],[1190592000000,1.88414],[1190678400000,1.89524],[1190764800000,1.88903],[1190851200000,null],[1190937600000,null],[1191024000000,1.8978],[1191110400000,1.8978],[1191196800000,1.8978],[1191283200000,1.90641],[1191369600000,1.89784],[1191456000000,1.89939],[1191542400000,1.88938],[1191628800000,1.89813],[1191715200000,1.89813],[1191801600000,1.89813],[1191888000000,1.89909],[1191974400000,1.88991],[1192060800000,1.90677],[1192147200000,1.91878],[1192233600000,1.91589],[1192320000000,1.91589],[1192406400000,1.91589],[1192492800000,1.93862],[1192579200000,1.92111],[1192665600000,1.93701],[1192752000000,1.94599],[1192838400000,1.95859],[1192924800000,1.95859],[1193011200000,1.95859],[1193097600000,1.93934],[1193184000000,1.96846],[1193270400000,1.96617],[1193356800000,1.99202],[1193443200000,2.00058],[1193529600000,2.00058],[1193616000000,2.00058],[1193702400000,2.00504],[1193788800000,1.99982],[1193875200000,2.00559],[1193961600000,1.99808],[1194048000000,2.00381],[1194134400000,2.00381],[1194220800000,2.00381],[1194307200000,2.00747],[1194393600000,2.01947],[1194480000000,2.04051],[1194566400000,2.03638],[1194652800000,2.03903],[1194739200000,2.03903],[1194825600000,2.03903],[1194912000000,2.02058],[1194998400000,2.02402],[1195084800000,2.03746],[1195171200000,2.0159],[1195257600000,2.01755],[1195344000000,2.01755],[1195430400000,2.01755],[1195516800000,2.01609],[1195603200000,2.02507],[1195689600000,2.02766],[1195776000000,2.03082],[1195862400000,2.02588],[1195948800000,2.02588],[1196035200000,2.02588],[1196121600000,2.03937],[1196208000000,2.03285],[1196294400000,2.04095],[1196380800000,2.04088],[1196467200000,2.06302],[1196553600000,2.06302],[1196640000000,2.06302],[1196726400000,2.04731],[1196812800000,2.05738],[1196899200000,2.06489],[1196985600000,2.05169],[1197072000000,2.061],[1197158400000,2.061],[1197244800000,2.061],[1197331200000,2.0791],[1197417600000,2.0729],[1197504000000,2.07048],[1197590400000,2.06751],[1197676800000,2.02836],[1197763200000,2.02836],[1197849600000,2.02836],[1197936000000,2.0092],[1198022400000,2.0158],[1198108800000,2.00963],[1198195200000,2.00184],[1198281600000,2.00328],[1198368000000,2.00328],[1198454400000,2.00328],[1198540800000,2.01669],[1198627200000,2.01669],[1198713600000,2.01669],[1198800000000,2.03176],[1198886400000,2.0601]], 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, 1.686494],[1168819200000, 1.686494],[1171497600000, 1.693328],[1173916800000, 1.718401],[1176595200000, 1.784473],[1179187200000, 1.805956],[1181865600000, 1.777908],[1184457600000, 1.835527],[1187136000000, 1.804803],[1189814400000, 1.846239],[1192406400000, 1.936726],[1195084800000, 2.023932],[1197676800000, 2.039884]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });