$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1104883200000,3.83093],[1104969600000,4.51803],[1105056000000,4.51257],[1105142400000,null],[1105228800000,4.51257],[1105315200000,null],[1105401600000,4.49343],[1105488000000,4.50685],[1105574400000,4.50024],[1105660800000,4.53465],[1105747200000,4.48268],[1105833600000,4.48268],[1105920000000,4.48268],[1106006400000,4.49252],[1106092800000,4.48879],[1106179200000,4.45148],[1106265600000,4.45148],[1106352000000,4.4386],[1106438400000,4.4386],[1106524800000,4.4386],[1106611200000,null],[1106697600000,4.46869],[1106784000000,4.44888],[1106870400000,4.46664],[1106956800000,4.47166],[1107043200000,4.47166],[1107129600000,4.46802],[1107216000000,4.46802],[1107302400000,4.45266],[1107388800000,4.45948],[1107475200000,4.42291],[1107561600000,4.40577],[1107648000000,4.40577],[1107734400000,4.40577],[1107820800000,4.36604],[1107907200000,4.33907],[1107993600000,4.3426],[1108080000000,4.344],[1108166400000,4.38067],[1108252800000,4.38067],[1108339200000,4.38067],[1108425600000,4.42054],[1108512000000,4.44812],[1108598400000,4.46702],[1108684800000,4.46274],[1108771200000,4.46494],[1108857600000,4.46494],[1108944000000,4.46494],[1109030400000,4.47852],[1109116800000,4.54558],[1109203200000,4.54636],[1109289600000,4.56531],[1109376000000,4.52232],[1109462400000,4.52232],[1109548800000,4.52232],[1109635200000,4.56398],[1109721600000,4.56007],[1109808000000,4.50379],[1109894400000,4.50455],[1109980800000,4.4854],[1110067200000,4.4854],[1110153600000,4.4854],[1110240000000,4.4854],[1110326400000,4.4854],[1110412800000,4.55104],[1110499200000,4.58724],[1110585600000,4.58394],[1110672000000,4.58394],[1110758400000,4.58394],[1110844800000,4.56325],[1110931200000,4.57006],[1111017600000,4.57849],[1111104000000,4.57693],[1111190400000,4.53474],[1111276800000,4.53474],[1111363200000,4.53474],[1111449600000,null],[1111536000000,4.49052],[1111622400000,4.4298],[1111708800000,4.41236],[1111795200000,4.41236],[1111881600000,4.41236],[1111968000000,4.41236],[1112054400000,4.41236],[1112140800000,4.39769],[1112227200000,4.40594],[1112313600000,4.42062],[1112400000000,4.40724],[1112486400000,4.40724],[1112572800000,4.40724],[1112659200000,4.37856],[1112745600000,4.35207],[1112832000000,4.37429],[1112918400000,4.39859],[1113004800000,4.35705],[1113091200000,4.35705],[1113177600000,4.35705],[1113264000000,4.41244],[1113350400000,4.41368],[1113436800000,4.38584],[1113523200000,4.33408],[1113609600000,4.33711],[1113696000000,4.33711],[1113782400000,4.33711],[1113868800000,4.37372],[1113955200000,4.36565],[1114041600000,4.26797],[1114128000000,4.27451],[1114214400000,4.27851],[1114300800000,4.27851],[1114387200000,4.27851],[1114473600000,4.24055],[1114560000000,4.25179],[1114646400000,4.22742],[1114732800000,4.23266],[1114819200000,4.25607],[1114905600000,4.25607],[1114992000000,4.25607],[1115078400000,4.25607],[1115164800000,4.25607],[1115251200000,4.24482],[1115337600000,4.23224],[1115424000000,4.2223],[1115510400000,4.2223],[1115596800000,4.2223],[1115683200000,4.2223],[1115769600000,4.19685],[1115856000000,4.21253],[1115942400000,4.17137],[1116028800000,4.13015],[1116115200000,4.13015],[1116201600000,4.13015],[1116288000000,4.12501],[1116374400000,4.13557],[1116460800000,4.13173],[1116547200000,4.13673],[1116633600000,4.11195],[1116720000000,4.11195],[1116806400000,4.11195],[1116892800000,4.09694],[1116979200000,4.11947],[1117065600000,4.10455],[1117152000000,4.08746],[1117238400000,4.09474],[1117324800000,4.09474],[1117411200000,4.09474],[1117497600000,4.0774],[1117584000000,4.05097],[1117670400000,4.0374],[1117756800000,4.03893],[1117843200000,4.04459],[1117929600000,4.04459],[1118016000000,4.04459],[1118102400000,4.04954],[1118188800000,4.05807],[1118275200000,4.0622],[1118361600000,4.03234],[1118448000000,4.02773],[1118534400000,4.02773],[1118620800000,4.02773],[1118707200000,3.96472],[1118793600000,3.97584],[1118880000000,3.9647],[1118966400000,null],[1119052800000,3.98645],[1119139200000,3.98645],[1119225600000,3.98645],[1119312000000,null],[1119398400000,3.96273],[1119484800000,3.9705],[1119571200000,3.96294],[1119657600000,3.96279],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,3.93853],[1120176000000,null],[1120262400000,3.93709],[1120348800000,3.93709],[1120435200000,3.93709],[1120521600000,3.88299],[1120608000000,3.87015],[1120694400000,3.87393],[1120780800000,3.90658],[1120867200000,3.87474],[1120953600000,3.87474],[1121040000000,3.87474],[1121126400000,3.90191],[1121212800000,3.95162],[1121299200000,3.95112],[1121385600000,3.91494],[1121472000000,3.91362],[1121558400000,3.91362],[1121644800000,3.91362],[1121731200000,3.90571],[1121817600000,3.86869],[1121904000000,3.89702],[1121990400000,3.94439],[1122076800000,3.92211],[1122163200000,3.92211],[1122249600000,3.92211],[1122336000000,3.89691],[1122422400000,3.87966],[1122508800000,3.8769],[1122595200000,3.91072],[1122681600000,3.91296],[1122768000000,3.91296],[1122854400000,3.91296],[1122940800000,3.95779],[1123027200000,3.9635],[1123113600000,3.98815],[1123200000000,3.99531],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,4.01371],[1123718400000,4.01541],[1123804800000,4.032],[1123891200000,4.04995],[1123977600000,4.04995],[1124064000000,4.04995],[1124150400000,4.02815],[1124236800000,4.007],[1124323200000,4.00974],[1124409600000,3.9886],[1124496000000,3.97237],[1124582400000,3.97237],[1124668800000,3.97237],[1124755200000,3.9816],[1124841600000,3.97687],[1124928000000,3.97687],[1125014400000,4.00398],[1125100800000,4.01825],[1125187200000,4.01825],[1125273600000,4.01825],[1125360000000,4.01601],[1125446400000,3.96558],[1125532800000,3.97804],[1125619200000,4.04575],[1125705600000,4.10261],[1125792000000,4.10261],[1125878400000,4.10261],[1125964800000,4.10376],[1126051200000,4.0839],[1126137600000,4.07475],[1126224000000,4.06422],[1126310400000,4.06192],[1126396800000,4.06192],[1126483200000,4.06192],[1126569600000,null],[1126656000000,null],[1126742400000,4.02002],[1126828800000,null],[1126915200000,null],[1127001600000,3.98628],[1127088000000,3.98628],[1127174400000,3.95216],[1127260800000,3.95373],[1127347200000,3.97811],[1127433600000,3.97394],[1127520000000,3.93366],[1127606400000,3.93366],[1127692800000,3.93366],[1127779200000,3.90316],[1127865600000,3.89172],[1127952000000,3.90761],[1128038400000,3.91052],[1128124800000,3.90798],[1128211200000,3.90798],[1128297600000,3.90798],[1128384000000,3.87859],[1128470400000,3.88747],[1128556800000,3.8909],[1128643200000,3.93972],[1128729600000,3.96068],[1128816000000,3.96068],[1128902400000,3.96068],[1128988800000,3.93937],[1129075200000,3.92343],[1129161600000,3.91784],[1129248000000,3.89964],[1129334400000,3.90784],[1129420800000,3.90784],[1129507200000,3.90784],[1129593600000,3.90777],[1129680000000,3.87465],[1129766400000,3.88937],[1129852800000,3.8916],[1129939200000,3.92295],[1130025600000,3.92295],[1130112000000,3.92295],[1130198400000,3.90504],[1130284800000,3.93018],[1130371200000,3.9355],[1130457600000,3.96175],[1130544000000,3.96513],[1130630400000,3.96513],[1130716800000,3.96513],[1130803200000,3.92858],[1130889600000,3.92089],[1130976000000,3.92683],[1131062400000,3.94134],[1131148800000,3.90321],[1131235200000,3.90321],[1131321600000,3.90321],[1131408000000,3.87006],[1131494400000,3.84714],[1131580800000,3.84142],[1131667200000,3.85877],[1131753600000,3.84044],[1131840000000,3.84044],[1131926400000,3.84044],[1132012800000,3.8417],[1132099200000,3.82264],[1132185600000,3.81207],[1132272000000,3.81746],[1132358400000,3.81297],[1132444800000,3.81297],[1132531200000,3.81297],[1132617600000,3.85108],[1132704000000,3.81941],[1132790400000,3.83893],[1132876800000,3.83873],[1132963200000,3.83915],[1133049600000,3.83915],[1133136000000,3.83915],[1133222400000,3.82757],[1133308800000,3.84819],[1133395200000,3.83813],[1133481600000,3.83476],[1133568000000,3.82651],[1133654400000,3.82651],[1133740800000,3.82651],[1133827200000,3.84816],[1133913600000,3.8614],[1134000000000,3.83972],[1134086400000,3.86094],[1134172800000,3.86506],[1134259200000,3.86506],[1134345600000,3.86506],[1134432000000,3.90717],[1134518400000,3.90211],[1134604800000,3.93626],[1134691200000,3.92963],[1134777600000,3.91424],[1134864000000,3.91424],[1134950400000,3.91424],[1135036800000,3.90093],[1135123200000,3.88975],[1135209600000,3.86075],[1135296000000,3.83905],[1135382400000,3.84736],[1135468800000,3.84736],[1135555200000,3.84736],[1135641600000,3.84736],[1135728000000,3.84336],[1135814400000,3.86213],[1135900800000,3.83165]], 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, 4.452205],[1105747200000, 4.452205],[1108425600000, 4.444646],[1110844800000, 4.504273],[1113523200000, 4.336676],[1116115200000, 4.161184],[1118793600000, 4.008687],[1121385600000, 3.906729],[1124064000000, 3.998332],[1126742400000, 4.004174],[1129334400000, 3.921502],[1132012800000, 3.854670],[1134604800000, 3.866425]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });