$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1104883200000,4.34061],[1104969600000,4.31225],[1105056000000,4.31064],[1105142400000,null],[1105228800000,4.31064],[1105315200000,null],[1105401600000,4.3332],[1105488000000,4.35974],[1105574400000,4.35705],[1105660800000,4.40986],[1105747200000,4.37866],[1105833600000,4.37866],[1105920000000,4.37866],[1106006400000,4.37004],[1106092800000,4.33812],[1106179200000,4.30621],[1106265600000,4.30621],[1106352000000,4.31411],[1106438400000,4.31411],[1106524800000,4.31411],[1106611200000,null],[1106697600000,4.31949],[1106784000000,4.28446],[1106870400000,4.28172],[1106956800000,4.27639],[1107043200000,4.27639],[1107129600000,4.27623],[1107216000000,4.27623],[1107302400000,4.27706],[1107388800000,4.29411],[1107475200000,4.27477],[1107561600000,4.26622],[1107648000000,4.26622],[1107734400000,4.26622],[1107820800000,4.23223],[1107907200000,4.22525],[1107993600000,4.24077],[1108080000000,4.22791],[1108166400000,4.26147],[1108252800000,4.26147],[1108339200000,4.26147],[1108425600000,4.3056],[1108512000000,4.2971],[1108598400000,4.29781],[1108684800000,4.292],[1108771200000,4.30471],[1108857600000,4.30471],[1108944000000,4.30471],[1109030400000,4.3041],[1109116800000,4.31416],[1109203200000,4.29992],[1109289600000,4.25563],[1109376000000,4.26466],[1109462400000,4.26466],[1109548800000,4.26466],[1109635200000,4.2992],[1109721600000,4.29467],[1109808000000,4.26237],[1109894400000,4.26197],[1109980800000,4.25834],[1110067200000,4.25834],[1110153600000,4.25834],[1110240000000,4.25834],[1110326400000,4.25834],[1110412800000,4.37909],[1110499200000,4.40844],[1110585600000,4.39238],[1110672000000,4.39238],[1110758400000,4.39238],[1110844800000,4.38221],[1110931200000,4.39705],[1111017600000,4.3987],[1111104000000,4.38722],[1111190400000,4.38422],[1111276800000,4.38422],[1111363200000,4.38422],[1111449600000,null],[1111536000000,4.39178],[1111622400000,4.35231],[1111708800000,4.33672],[1111795200000,4.33672],[1111881600000,4.33672],[1111968000000,4.33672],[1112054400000,4.33672],[1112140800000,4.35254],[1112227200000,4.35763],[1112313600000,4.35011],[1112400000000,4.34871],[1112486400000,4.34871],[1112572800000,4.34871],[1112659200000,4.33503],[1112745600000,4.31266],[1112832000000,4.3186],[1112918400000,4.32903],[1113004800000,4.28955],[1113091200000,4.28955],[1113177600000,4.28955],[1113264000000,4.29109],[1113350400000,4.26823],[1113436800000,4.2541],[1113523200000,4.22298],[1113609600000,4.21025],[1113696000000,4.21025],[1113782400000,4.21025],[1113868800000,4.18006],[1113955200000,4.16122],[1114041600000,4.07731],[1114128000000,4.06403],[1114214400000,4.0896],[1114300800000,4.0896],[1114387200000,4.0896],[1114473600000,4.07153],[1114560000000,4.06865],[1114646400000,4.04727],[1114732800000,4.02982],[1114819200000,4.04131],[1114905600000,4.04131],[1114992000000,4.04131],[1115078400000,4.04131],[1115164800000,4.04131],[1115251200000,4.04381],[1115337600000,4.04863],[1115424000000,4.07164],[1115510400000,4.07164],[1115596800000,4.07164],[1115683200000,4.07164],[1115769600000,4.07794],[1115856000000,4.06563],[1115942400000,4.04222],[1116028800000,4.0282],[1116115200000,4.0282],[1116201600000,4.0282],[1116288000000,3.97795],[1116374400000,3.97606],[1116460800000,3.98949],[1116547200000,4.00214],[1116633600000,4.00663],[1116720000000,4.00663],[1116806400000,4.00663],[1116892800000,3.99845],[1116979200000,4.00905],[1117065600000,4.00784],[1117152000000,3.98094],[1117238400000,4.00016],[1117324800000,4.00016],[1117411200000,4.00016],[1117497600000,4.01707],[1117584000000,4.0095],[1117670400000,4.02924],[1117756800000,4.0516],[1117843200000,4.05727],[1117929600000,4.05727],[1118016000000,4.05727],[1118102400000,4.05882],[1118188800000,4.06259],[1118275200000,4.05823],[1118361600000,4.03129],[1118448000000,4.03404],[1118534400000,4.03404],[1118620800000,4.03404],[1118707200000,4.02067],[1118793600000,4.02261],[1118880000000,4.05186],[1118966400000,null],[1119052800000,4.08269],[1119139200000,4.08269],[1119225600000,4.08269],[1119312000000,null],[1119398400000,4.0829],[1119484800000,4.10027],[1119571200000,4.08914],[1119657600000,4.11553],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,4.09937],[1120176000000,null],[1120262400000,4.10976],[1120348800000,4.10976],[1120435200000,4.10976],[1120521600000,4.06684],[1120608000000,4.07327],[1120694400000,4.06811],[1120780800000,4.09503],[1120867200000,4.11958],[1120953600000,4.11958],[1121040000000,4.11958],[1121126400000,4.16143],[1121212800000,4.17169],[1121299200000,4.19895],[1121385600000,4.19581],[1121472000000,4.16552],[1121558400000,4.16552],[1121644800000,4.16552],[1121731200000,4.14792],[1121817600000,4.13786],[1121904000000,4.15313],[1121990400000,4.16347],[1122076800000,4.14928],[1122163200000,4.14928],[1122249600000,4.14928],[1122336000000,4.14168],[1122422400000,4.12079],[1122508800000,4.07851],[1122595200000,4.09003],[1122681600000,4.11077],[1122768000000,4.11077],[1122854400000,4.11077],[1122940800000,4.14858],[1123027200000,4.16779],[1123113600000,4.17094],[1123200000000,4.15182],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,4.1594],[1123718400000,4.16692],[1123804800000,4.18304],[1123891200000,4.21211],[1123977600000,4.21211],[1124064000000,4.21211],[1124150400000,4.22192],[1124236800000,4.19799],[1124323200000,4.20326],[1124409600000,4.15436],[1124496000000,4.14835],[1124582400000,4.14835],[1124668800000,4.14835],[1124755200000,4.18331],[1124841600000,4.20965],[1124928000000,4.20965],[1125014400000,4.23867],[1125100800000,4.22533],[1125187200000,4.22533],[1125273600000,4.22533],[1125360000000,4.24077],[1125446400000,4.20523],[1125532800000,4.23309],[1125619200000,4.25343],[1125705600000,4.25476],[1125792000000,4.25476],[1125878400000,4.25476],[1125964800000,4.2586],[1126051200000,4.24078],[1126137600000,4.24103],[1126224000000,4.27011],[1126310400000,4.29364],[1126396800000,4.29364],[1126483200000,4.29364],[1126569600000,null],[1126656000000,null],[1126742400000,4.28188],[1126828800000,null],[1126915200000,null],[1127001600000,4.26777],[1127088000000,4.26777],[1127174400000,4.28206],[1127260800000,4.32908],[1127347200000,4.32812],[1127433600000,4.33384],[1127520000000,4.30684],[1127606400000,4.30684],[1127692800000,4.30684],[1127779200000,4.2886],[1127865600000,4.30119],[1127952000000,4.28952],[1128038400000,4.30365],[1128124800000,4.32426],[1128211200000,4.32426],[1128297600000,4.32426],[1128384000000,4.33444],[1128470400000,4.32629],[1128556800000,4.30116],[1128643200000,4.27095],[1128729600000,4.28113],[1128816000000,4.28113],[1128902400000,4.28113],[1128988800000,4.29648],[1129075200000,4.27453],[1129161600000,4.30715],[1129248000000,4.3023],[1129334400000,4.26455],[1129420800000,4.26455],[1129507200000,4.26455],[1129593600000,4.26492],[1129680000000,4.25509],[1129766400000,4.2897],[1129852800000,4.29261],[1129939200000,4.28334],[1130025600000,4.28334],[1130112000000,4.28334],[1130198400000,4.23993],[1130284800000,4.25537],[1130371200000,4.29191],[1130457600000,4.32358],[1130544000000,4.31334],[1130630400000,4.31334],[1130716800000,4.31334],[1130803200000,4.28756],[1130889600000,4.27015],[1130976000000,4.27892],[1131062400000,4.29307],[1131148800000,4.27691],[1131235200000,4.27691],[1131321600000,4.27691],[1131408000000,4.2587],[1131494400000,4.22428],[1131580800000,4.24894],[1131667200000,4.25305],[1131753600000,4.23774],[1131840000000,4.23774],[1131926400000,4.23774],[1132012800000,4.22414],[1132099200000,4.22021],[1132185600000,4.22383],[1132272000000,4.25026],[1132358400000,4.24553],[1132444800000,4.24553],[1132531200000,4.24553],[1132617600000,4.24161],[1132704000000,4.26643],[1132790400000,4.30403],[1132876800000,4.31314],[1132963200000,4.31646],[1133049600000,4.31646],[1133136000000,4.31646],[1133222400000,4.31732],[1133308800000,4.31962],[1133395200000,4.32526],[1133481600000,4.3221],[1133568000000,4.33954],[1133654400000,4.33954],[1133740800000,4.33954],[1133827200000,4.36968],[1133913600000,4.37305],[1134000000000,4.3399],[1134086400000,4.34366],[1134172800000,4.35523],[1134259200000,4.35523],[1134345600000,4.35523],[1134432000000,4.38068],[1134518400000,4.38323],[1134604800000,4.40629],[1134691200000,4.36312],[1134777600000,4.3661],[1134864000000,4.3661],[1134950400000,4.3661],[1135036800000,4.34136],[1135123200000,4.30619],[1135209600000,4.30763],[1135296000000,4.32648],[1135382400000,4.32654],[1135468800000,4.32654],[1135555200000,4.32654],[1135641600000,4.32654],[1135728000000,4.32711],[1135814400000,4.3143],[1135900800000,4.32852]], 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.326982],[1105747200000, 4.326982],[1108425600000, 4.275208],[1110844800000, 4.341008],[1113523200000, 4.207911],[1116115200000, 4.025612],[1118793600000, 4.058566],[1121385600000, 4.130615],[1124064000000, 4.188202],[1126742400000, 4.282162],[1129334400000, 4.291170],[1132012800000, 4.267507],[1134604800000, 4.344912]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });