$(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: [[1104883200000,1.54339],[1104969600000,1.70265],[1105056000000,1.6978],[1105142400000,null],[1105228800000,1.6978],[1105315200000,null],[1105401600000,1.70519],[1105488000000,1.71448],[1105574400000,1.71147],[1105660800000,1.72389],[1105747200000,1.70928],[1105833600000,1.70928],[1105920000000,1.70928],[1106006400000,1.70644],[1106092800000,1.69901],[1106179200000,1.66797],[1106265600000,1.66797],[1106352000000,1.68678],[1106438400000,1.68678],[1106524800000,1.68678],[1106611200000,null],[1106697600000,1.69661],[1106784000000,1.69579],[1106870400000,1.70189],[1106956800000,1.70581],[1107043200000,1.70581],[1107129600000,1.6942],[1107216000000,1.6942],[1107302400000,1.70582],[1107388800000,1.70735],[1107475200000,1.72742],[1107561600000,1.72545],[1107648000000,1.72545],[1107734400000,1.72545],[1107820800000,1.71827],[1107907200000,1.69716],[1107993600000,1.6822],[1108080000000,1.6896],[1108166400000,1.69386],[1108252800000,1.69386],[1108339200000,1.69386],[1108425600000,1.71322],[1108512000000,1.73614],[1108598400000,1.72496],[1108684800000,1.72704],[1108771200000,1.73153],[1108857600000,1.73153],[1108944000000,1.73153],[1109030400000,1.73483],[1109116800000,1.76214],[1109203200000,1.77021],[1109289600000,1.78387],[1109376000000,1.77813],[1109462400000,1.77813],[1109548800000,1.77813],[1109635200000,1.79821],[1109721600000,1.80659],[1109808000000,1.77546],[1109894400000,1.78393],[1109980800000,1.76861],[1110067200000,1.76861],[1110153600000,1.76861],[1110240000000,1.76861],[1110326400000,1.76861],[1110412800000,1.81097],[1110499200000,1.78801],[1110585600000,1.7979],[1110672000000,1.7979],[1110758400000,1.7979],[1110844800000,1.76713],[1110931200000,1.76885],[1111017600000,1.73976],[1111104000000,1.71989],[1111190400000,1.72749],[1111276800000,1.72749],[1111363200000,1.72749],[1111449600000,null],[1111536000000,1.71564],[1111622400000,1.67276],[1111708800000,1.66378],[1111795200000,1.66378],[1111881600000,1.66378],[1111968000000,1.66378],[1112054400000,1.66378],[1112140800000,1.64203],[1112227200000,1.66227],[1112313600000,1.6776],[1112400000000,1.67412],[1112486400000,1.67412],[1112572800000,1.67412],[1112659200000,1.65449],[1112745600000,1.63778],[1112832000000,1.6436],[1112918400000,1.65928],[1113004800000,1.6433],[1113091200000,1.6433],[1113177600000,1.6433],[1113264000000,1.67187],[1113350400000,1.6764],[1113436800000,1.66311],[1113523200000,1.63477],[1113609600000,1.62617],[1113696000000,1.62617],[1113782400000,1.62617],[1113868800000,1.61484],[1113955200000,1.60281],[1114041600000,1.58495],[1114128000000,1.58133],[1114214400000,1.57912],[1114300800000,1.57912],[1114387200000,1.57912],[1114473600000,1.55778],[1114560000000,1.55881],[1114646400000,1.54622],[1114732800000,1.52581],[1114819200000,1.53185],[1114905600000,1.53185],[1114992000000,1.53185],[1115078400000,1.53185],[1115164800000,1.53185],[1115251200000,1.5593],[1115337600000,1.57474],[1115424000000,1.58272],[1115510400000,1.58272],[1115596800000,1.58272],[1115683200000,1.58272],[1115769600000,1.55767],[1115856000000,1.56024],[1115942400000,1.55774],[1116028800000,1.53175],[1116115200000,1.53175],[1116201600000,1.53175],[1116288000000,1.50841],[1116374400000,1.51453],[1116460800000,1.5185],[1116547200000,1.53411],[1116633600000,1.52543],[1116720000000,1.52543],[1116806400000,1.52543],[1116892800000,1.51611],[1116979200000,1.52401],[1117065600000,1.51667],[1117152000000,1.51385],[1117238400000,1.523],[1117324800000,1.523],[1117411200000,1.523],[1117497600000,1.51988],[1117584000000,1.51291],[1117670400000,1.48509],[1117756800000,1.50467],[1117843200000,1.50933],[1117929600000,1.50933],[1118016000000,1.50933],[1118102400000,1.51701],[1118188800000,1.52995],[1118275200000,1.53401],[1118361600000,1.52227],[1118448000000,1.53508],[1118534400000,1.53508],[1118620800000,1.53508],[1118707200000,1.51029],[1118793600000,1.51237],[1118880000000,1.51319],[1118966400000,null],[1119052800000,1.51852],[1119139200000,1.51852],[1119225600000,1.51852],[1119312000000,null],[1119398400000,1.5058],[1119484800000,1.51507],[1119571200000,1.52009],[1119657600000,1.51606],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,1.50374],[1120176000000,null],[1120262400000,1.51865],[1120348800000,1.51865],[1120435200000,1.51865],[1120521600000,1.49682],[1120608000000,1.48659],[1120694400000,1.48307],[1120780800000,1.47048],[1120867200000,1.47755],[1120953600000,1.47755],[1121040000000,1.47755],[1121126400000,1.48569],[1121212800000,1.49852],[1121299200000,1.48035],[1121385600000,1.4718],[1121472000000,1.47574],[1121558400000,1.47574],[1121644800000,1.47574],[1121731200000,1.48108],[1121817600000,1.46796],[1121904000000,1.46872],[1121990400000,1.49238],[1122076800000,1.49039],[1122163200000,1.49039],[1122249600000,1.49039],[1122336000000,1.48428],[1122422400000,1.46714],[1122508800000,1.47491],[1122595200000,1.49427],[1122681600000,1.49993],[1122768000000,1.49993],[1122854400000,1.49993],[1122940800000,1.5206],[1123027200000,1.52148],[1123113600000,1.52454],[1123200000000,1.52669],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,1.54748],[1123718400000,1.54954],[1123804800000,1.55235],[1123891200000,1.55732],[1123977600000,1.55732],[1124064000000,1.55732],[1124150400000,1.54122],[1124236800000,1.54836],[1124323200000,1.53955],[1124409600000,1.53613],[1124496000000,1.52382],[1124582400000,1.52382],[1124668800000,1.52382],[1124755200000,1.53629],[1124841600000,1.53349],[1124928000000,1.53349],[1125014400000,1.53286],[1125100800000,1.53144],[1125187200000,1.53144],[1125273600000,1.53144],[1125360000000,1.52878],[1125446400000,1.52138],[1125532800000,1.52797],[1125619200000,1.57102],[1125705600000,1.59394],[1125792000000,1.59394],[1125878400000,1.59394],[1125964800000,1.60833],[1126051200000,1.60507],[1126137600000,1.60145],[1126224000000,1.59647],[1126310400000,1.59531],[1126396800000,1.59531],[1126483200000,1.59531],[1126569600000,null],[1126656000000,null],[1126742400000,1.58686],[1126828800000,null],[1126915200000,null],[1127001600000,1.59238],[1127088000000,1.59238],[1127174400000,1.58015],[1127260800000,1.58296],[1127347200000,1.58485],[1127433600000,1.5786],[1127520000000,1.56844],[1127606400000,1.56844],[1127692800000,1.56844],[1127779200000,1.55846],[1127865600000,1.55597],[1127952000000,1.55852],[1128038400000,1.56164],[1128124800000,1.55192],[1128211200000,1.55192],[1128297600000,1.55192],[1128384000000,1.53807],[1128470400000,1.53293],[1128556800000,1.54157],[1128643200000,1.54295],[1128729600000,1.56355],[1128816000000,1.56355],[1128902400000,1.56355],[1128988800000,1.57128],[1129075200000,1.56674],[1129161600000,1.56109],[1129248000000,1.54232],[1129334400000,1.54095],[1129420800000,1.54095],[1129507200000,1.54095],[1129593600000,1.55849],[1129680000000,1.55162],[1129766400000,1.54658],[1129852800000,1.54776],[1129939200000,1.559],[1130025600000,1.559],[1130112000000,1.559],[1130198400000,1.54296],[1130284800000,1.54523],[1130371200000,1.53713],[1130457600000,1.52912],[1130544000000,1.53646],[1130630400000,1.53646],[1130716800000,1.53646],[1130803200000,1.52588],[1130889600000,1.52574],[1130976000000,1.52581],[1131062400000,1.53518],[1131148800000,1.5102],[1131235200000,1.5102],[1131321600000,1.5102],[1131408000000,1.4795],[1131494400000,1.48445],[1131580800000,1.48274],[1131667200000,1.4747],[1131753600000,1.46655],[1131840000000,1.46655],[1131926400000,1.46655],[1132012800000,1.47947],[1132099200000,1.47517],[1132185600000,1.47996],[1132272000000,1.48521],[1132358400000,1.48435],[1132444800000,1.48435],[1132531200000,1.48435],[1132617600000,1.49912],[1132704000000,1.48572],[1132790400000,1.50829],[1132876800000,1.51591],[1132963200000,1.51709],[1133049600000,1.51709],[1133136000000,1.51709],[1133222400000,1.52344],[1133308800000,1.52556],[1133395200000,1.52062],[1133481600000,1.51694],[1133568000000,1.52289],[1133654400000,1.52289],[1133740800000,1.52289],[1133827200000,1.53807],[1133913600000,1.55311],[1134000000000,1.54063],[1134086400000,1.53935],[1134172800000,1.54306],[1134259200000,1.54306],[1134345600000,1.54306],[1134432000000,1.56879],[1134518400000,1.5724],[1134604800000,1.58038],[1134691200000,1.57615],[1134777600000,1.56286],[1134864000000,1.56286],[1134950400000,1.56286],[1135036800000,1.56865],[1135123200000,1.57389],[1135209600000,1.56606],[1135296000000,1.55613],[1135382400000,1.55877],[1135468800000,1.55877],[1135555200000,1.55877],[1135641600000,1.55877],[1135728000000,1.56445],[1135814400000,1.56533],[1135900800000,1.54697]], 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: [[1105747200000, 1.692765],[1105747200000, 1.692765],[1108425600000, 1.727191],[1110844800000, 1.739654],[1113523200000, 1.619714],[1116115200000, 1.537890],[1118793600000, 1.516304],[1121385600000, 1.486363],[1124064000000, 1.534515],[1126742400000, 1.581390],[1129334400000, 1.548757],[1132012800000, 1.498214],[1134604800000, 1.552314]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });