$(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: [[1104883200000,0.393547],[1104969600000,0.425731],[1105056000000,0.42579],[1105142400000,null],[1105228800000,0.42579],[1105315200000,null],[1105401600000,0.425804],[1105488000000,0.425815],[1105574400000,0.425777],[1105660800000,0.425732],[1105747200000,0.425651],[1105833600000,0.425651],[1105920000000,0.425651],[1106006400000,0.425616],[1106092800000,0.425561],[1106179200000,0.425343],[1106265600000,0.425343],[1106352000000,0.425343],[1106438400000,0.425343],[1106524800000,0.425343],[1106611200000,null],[1106697600000,0.425035],[1106784000000,0.424984],[1106870400000,0.424891],[1106956800000,0.424883],[1107043200000,0.424883],[1107129600000,0.424666],[1107216000000,0.424666],[1107302400000,0.424554],[1107388800000,0.424388],[1107475200000,0.424338],[1107561600000,0.424314],[1107648000000,0.424314],[1107734400000,0.424314],[1107820800000,0.424437],[1107907200000,0.424405],[1107993600000,0.424306],[1108080000000,0.424251],[1108166400000,0.424213],[1108252800000,0.424213],[1108339200000,0.424213],[1108425600000,0.4242],[1108512000000,0.424111],[1108598400000,0.424009],[1108684800000,0.423918],[1108771200000,0.423806],[1108857600000,0.423806],[1108944000000,0.423806],[1109030400000,0.423677],[1109116800000,0.423379],[1109203200000,0.42292],[1109289600000,0.422649],[1109376000000,0.422255],[1109462400000,0.422255],[1109548800000,0.422255],[1109635200000,0.422039],[1109721600000,0.421339],[1109808000000,0.421146],[1109894400000,0.420768],[1109980800000,0.42072],[1110067200000,0.420506],[1110153600000,0.420506],[1110240000000,0.420506],[1110326400000,0.420506],[1110412800000,0.420413],[1110499200000,0.420398],[1110585600000,0.420371],[1110672000000,0.420371],[1110758400000,0.420371],[1110844800000,0.420307],[1110931200000,0.420195],[1111017600000,0.420198],[1111104000000,0.420053],[1111190400000,0.419934],[1111276800000,0.419934],[1111363200000,0.419934],[1111449600000,null],[1111536000000,0.419735],[1111622400000,0.418815],[1111708800000,0.418763],[1111795200000,0.41868],[1111881600000,0.41868],[1111968000000,0.41868],[1112054400000,0.41864],[1112140800000,0.418624],[1112227200000,0.418583],[1112313600000,0.418541],[1112400000000,0.418541],[1112486400000,0.418541],[1112572800000,0.418541],[1112659200000,0.418535],[1112745600000,0.418518],[1112832000000,0.418113],[1112918400000,0.418146],[1113004800000,0.417773],[1113091200000,0.417773],[1113177600000,0.417773],[1113264000000,0.417826],[1113350400000,0.417628],[1113436800000,0.417152],[1113523200000,0.416736],[1113609600000,0.415071],[1113696000000,0.415071],[1113782400000,0.415071],[1113868800000,0.413911],[1113955200000,0.41151],[1114041600000,0.400425],[1114128000000,0.400438],[1114214400000,0.400454],[1114300800000,0.400454],[1114387200000,0.400454],[1114473600000,0.400454],[1114560000000,0.400495],[1114646400000,0.400568],[1114732800000,0.400686],[1114819200000,0.400787],[1114905600000,0.400787],[1114992000000,0.400787],[1115078400000,0.400787],[1115164800000,0.400787],[1115251200000,0.400965],[1115337600000,0.401102],[1115424000000,0.401109],[1115510400000,0.401109],[1115596800000,0.401109],[1115683200000,0.401109],[1115769600000,0.401093],[1115856000000,0.401055],[1115942400000,0.400918],[1116028800000,0.400918],[1116115200000,0.400918],[1116201600000,0.400918],[1116288000000,0.400905],[1116374400000,0.40094],[1116460800000,0.40093],[1116547200000,0.40093],[1116633600000,0.400854],[1116720000000,0.400854],[1116806400000,0.400854],[1116892800000,0.400854],[1116979200000,0.400822],[1117065600000,0.400806],[1117152000000,0.400759],[1117238400000,0.400743],[1117324800000,0.400743],[1117411200000,0.400743],[1117497600000,0.400721],[1117584000000,0.400711],[1117670400000,0.401155],[1117756800000,0.401184],[1117843200000,0.401184],[1117929600000,0.401184],[1118016000000,0.401184],[1118102400000,0.401257],[1118188800000,0.401334],[1118275200000,0.401343],[1118361600000,0.40135],[1118448000000,0.401369],[1118534400000,0.401369],[1118620800000,0.401369],[1118707200000,0.401359],[1118793600000,0.401449],[1118880000000,0.401503],[1118966400000,null],[1119052800000,0.401522],[1119139200000,0.401522],[1119225600000,0.401522],[1119312000000,null],[1119398400000,0.401621],[1119484800000,0.401665],[1119571200000,0.401717],[1119657600000,0.401777],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,0.4018],[1120176000000,null],[1120262400000,0.40179],[1120348800000,0.40179],[1120435200000,0.40179],[1120521600000,0.401809],[1120608000000,0.401822],[1120694400000,0.401835],[1120780800000,0.401851],[1120867200000,0.401863],[1120953600000,0.401863],[1121040000000,0.401863],[1121126400000,0.401873],[1121212800000,0.401889],[1121299200000,0.401908],[1121385600000,0.401927],[1121472000000,0.401918],[1121558400000,0.401918],[1121644800000,0.401918],[1121731200000,0.401905],[1121817600000,0.401895],[1121904000000,0.401485],[1121990400000,0.401472],[1122076800000,0.40146],[1122163200000,0.40146],[1122249600000,0.40146],[1122336000000,0.40145],[1122422400000,0.401437],[1122508800000,0.401421],[1122595200000,0.401412],[1122681600000,0.401396],[1122768000000,0.401396],[1122854400000,0.401396],[1122940800000,0.401383],[1123027200000,0.401345],[1123113600000,0.401332],[1123200000000,0.401294],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,0.401322],[1123718400000,0.401383],[1123804800000,0.401424],[1123891200000,0.401466],[1123977600000,0.401466],[1124064000000,0.401466],[1124150400000,0.401533],[1124236800000,0.401613],[1124323200000,0.401635],[1124409600000,0.401651],[1124496000000,0.401664],[1124582400000,0.401664],[1124668800000,0.401664],[1124755200000,0.401741],[1124841600000,0.401721],[1124928000000,0.401721],[1125014400000,0.401734],[1125100800000,0.401715],[1125187200000,0.401715],[1125273600000,0.401715],[1125360000000,0.401677],[1125446400000,0.401689],[1125532800000,0.401689],[1125619200000,0.401718],[1125705600000,0.401744],[1125792000000,0.401744],[1125878400000,0.401744],[1125964800000,0.401779],[1126051200000,0.401801],[1126137600000,0.401862],[1126224000000,0.401907],[1126310400000,0.401936],[1126396800000,0.401936],[1126483200000,0.401936],[1126569600000,null],[1126656000000,null],[1126742400000,0.401952],[1126828800000,null],[1126915200000,null],[1127001600000,0.401913],[1127088000000,0.401913],[1127174400000,0.401888],[1127260800000,0.401853],[1127347200000,0.401811],[1127433600000,0.401741],[1127520000000,0.401651],[1127606400000,0.401651],[1127692800000,0.401651],[1127779200000,0.401613],[1127865600000,0.401523],[1127952000000,0.401409],[1128038400000,0.401278],[1128124800000,0.401099],[1128211200000,0.401099],[1128297600000,0.401099],[1128384000000,0.401039],[1128470400000,0.401007],[1128556800000,0.400988],[1128643200000,0.400978],[1128729600000,0.400959],[1128816000000,0.400959],[1128902400000,0.400959],[1128988800000,0.400972],[1129075200000,0.40101],[1129161600000,0.40102],[1129248000000,0.401077],[1129334400000,0.401077],[1129420800000,0.401077],[1129507200000,0.401077],[1129593600000,0.401067],[1129680000000,0.401048],[1129766400000,0.401077],[1129852800000,0.40102],[1129939200000,0.400981],[1130025600000,0.400981],[1130112000000,0.400981],[1130198400000,0.40088],[1130284800000,0.400781],[1130371200000,0.400676],[1130457600000,0.400568],[1130544000000,0.400489],[1130630400000,0.400489],[1130716800000,0.400489],[1130803200000,0.400438],[1130889600000,0.400362],[1130976000000,0.400292],[1131062400000,0.400244],[1131148800000,0.400193],[1131235200000,0.400193],[1131321600000,0.400193],[1131408000000,0.400146],[1131494400000,0.400124],[1131580800000,0.40007],[1131667200000,0.400029],[1131753600000,0.399892],[1131840000000,0.399892],[1131926400000,0.399892],[1132012800000,0.399864],[1132099200000,0.399791],[1132185600000,0.399617],[1132272000000,0.399244],[1132358400000,0.399008],[1132444800000,0.399008],[1132531200000,0.399008],[1132617600000,0.398866],[1132704000000,0.398105],[1132790400000,0.396941],[1132876800000,0.396554],[1132963200000,0.395802],[1133049600000,0.395802],[1133136000000,0.395802],[1133222400000,0.39517],[1133308800000,0.39451],[1133395200000,0.393882],[1133481600000,0.393636],[1133568000000,0.393462],[1133654400000,0.393462],[1133740800000,0.393462],[1133827200000,0.393511],[1133913600000,0.393437],[1134000000000,0.393498],[1134086400000,0.393458],[1134172800000,0.393403],[1134259200000,0.393403],[1134345600000,0.393403],[1134432000000,0.393382],[1134518400000,0.393345],[1134604800000,0.393287],[1134691200000,0.393268],[1134777600000,0.393305],[1134864000000,0.393305],[1134950400000,0.393305],[1135036800000,0.39333],[1135123200000,0.393311],[1135209600000,0.393345],[1135296000000,0.393403],[1135382400000,0.393443],[1135468800000,0.393443],[1135555200000,0.393443],[1135641600000,0.393511],[1135728000000,0.393526],[1135814400000,0.393544],[1135900800000,0.393569]], 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, 0.424091],[1105747200000, 0.424091],[1108425600000, 0.423856],[1110844800000, 0.419990],[1113523200000, 0.411533],[1116115200000, 0.400901],[1118793600000, 0.401394],[1121385600000, 0.401709],[1124064000000, 0.401560],[1126742400000, 0.401755],[1129334400000, 0.400936],[1132012800000, 0.398835],[1134604800000, 0.393436]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });