$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1104883200000,3.0352],[1104969600000,3.21477],[1105056000000,3.21308],[1105142400000,null],[1105228800000,3.21308],[1105315200000,null],[1105401600000,3.22203],[1105488000000,3.22872],[1105574400000,3.23493],[1105660800000,3.2561],[1105747200000,3.23826],[1105833600000,3.23826],[1105920000000,3.23826],[1106006400000,3.24646],[1106092800000,3.24217],[1106179200000,3.2387],[1106265600000,3.2387],[1106352000000,3.23462],[1106438400000,3.23462],[1106524800000,3.23462],[1106611200000,null],[1106697600000,3.23785],[1106784000000,3.24473],[1106870400000,3.2432],[1106956800000,3.24355],[1107043200000,3.24355],[1107129600000,3.24054],[1107216000000,3.24054],[1107302400000,3.23352],[1107388800000,3.24128],[1107475200000,3.23761],[1107561600000,3.24302],[1107648000000,3.24302],[1107734400000,3.24302],[1107820800000,3.23434],[1107907200000,3.21441],[1107993600000,3.21327],[1108080000000,3.19844],[1108166400000,3.20598],[1108252800000,3.20598],[1108339200000,3.20598],[1108425600000,3.22829],[1108512000000,3.23213],[1108598400000,3.23246],[1108684800000,3.22592],[1108771200000,3.23493],[1108857600000,3.23493],[1108944000000,3.23493],[1109030400000,3.23587],[1109116800000,3.25561],[1109203200000,3.25823],[1109289600000,3.25511],[1109376000000,3.2417],[1109462400000,3.2417],[1109548800000,3.2417],[1109635200000,3.25799],[1109721600000,3.26506],[1109808000000,3.25199],[1109894400000,3.25732],[1109980800000,3.25068],[1110067200000,3.25068],[1110153600000,3.25068],[1110240000000,3.25068],[1110326400000,3.25068],[1110412800000,3.26727],[1110499200000,3.26855],[1110585600000,3.26927],[1110672000000,3.26927],[1110758400000,3.26927],[1110844800000,3.26373],[1110931200000,3.26812],[1111017600000,3.26489],[1111104000000,3.26057],[1111190400000,3.25109],[1111276800000,3.25109],[1111363200000,3.25109],[1111449600000,null],[1111536000000,3.23643],[1111622400000,3.22135],[1111708800000,3.20625],[1111795200000,3.20625],[1111881600000,3.20625],[1111968000000,3.20625],[1112054400000,3.20625],[1112140800000,3.19753],[1112227200000,3.19778],[1112313600000,3.2024],[1112400000000,3.19042],[1112486400000,3.19042],[1112572800000,3.19042],[1112659200000,3.17025],[1112745600000,3.17106],[1112832000000,3.17319],[1112918400000,3.18781],[1113004800000,3.17344],[1113091200000,3.17344],[1113177600000,3.17344],[1113264000000,3.19455],[1113350400000,3.19738],[1113436800000,3.20144],[1113523200000,3.17614],[1113609600000,3.1567],[1113696000000,3.1567],[1113782400000,3.1567],[1113868800000,3.15267],[1113955200000,3.14127],[1114041600000,3.06386],[1114128000000,3.05801],[1114214400000,3.06587],[1114300800000,3.06587],[1114387200000,3.06587],[1114473600000,3.06791],[1114560000000,3.06556],[1114646400000,3.06463],[1114732800000,3.06684],[1114819200000,3.08777],[1114905600000,3.08777],[1114992000000,3.08777],[1115078400000,3.08777],[1115164800000,3.08777],[1115251200000,3.08827],[1115337600000,3.08661],[1115424000000,3.07768],[1115510400000,3.07768],[1115596800000,3.07768],[1115683200000,3.07768],[1115769600000,3.07046],[1115856000000,3.07613],[1115942400000,3.05831],[1116028800000,3.04727],[1116115200000,3.04727],[1116201600000,3.04727],[1116288000000,3.04152],[1116374400000,3.04824],[1116460800000,3.05571],[1116547200000,3.05275],[1116633600000,3.04531],[1116720000000,3.04531],[1116806400000,3.04531],[1116892800000,3.04081],[1116979200000,3.05196],[1117065600000,3.04629],[1117152000000,3.04029],[1117238400000,3.0449],[1117324800000,3.0449],[1117411200000,3.0449],[1117497600000,3.03975],[1117584000000,3.02995],[1117670400000,3.01657],[1117756800000,3.02167],[1117843200000,3.03132],[1117929600000,3.03132],[1118016000000,3.03132],[1118102400000,3.04018],[1118188800000,3.04564],[1118275200000,3.04456],[1118361600000,3.03976],[1118448000000,3.03444],[1118534400000,3.03444],[1118620800000,3.03444],[1118707200000,3.01148],[1118793600000,3.01899],[1118880000000,3.01606],[1118966400000,null],[1119052800000,3.02465],[1119139200000,3.02465],[1119225600000,3.02465],[1119312000000,null],[1119398400000,3.01748],[1119484800000,3.02297],[1119571200000,3.02758],[1119657600000,3.02125],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,2.99955],[1120176000000,null],[1120262400000,2.99289],[1120348800000,2.99289],[1120435200000,2.99289],[1120521600000,2.98398],[1120608000000,2.97428],[1120694400000,2.98061],[1120780800000,2.98158],[1120867200000,2.96588],[1120953600000,2.96588],[1121040000000,2.96588],[1121126400000,2.97779],[1121212800000,2.99455],[1121299200000,2.99548],[1121385600000,2.99086],[1121472000000,2.99897],[1121558400000,2.99897],[1121644800000,2.99897],[1121731200000,2.99366],[1121817600000,2.98844],[1121904000000,2.99352],[1121990400000,3.04569],[1122076800000,3.03996],[1122163200000,3.03996],[1122249600000,3.03996],[1122336000000,3.03564],[1122422400000,3.02581],[1122508800000,3.02672],[1122595200000,3.03236],[1122681600000,3.03829],[1122768000000,3.03829],[1122854400000,3.03829],[1122940800000,3.04465],[1123027200000,3.05516],[1123113600000,3.05973],[1123200000000,3.0551],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,3.04903],[1123718400000,3.06226],[1123804800000,3.06139],[1123891200000,3.06002],[1123977600000,3.06002],[1124064000000,3.06002],[1124150400000,3.04645],[1124236800000,3.04315],[1124323200000,3.04446],[1124409600000,3.03417],[1124496000000,3.02717],[1124582400000,3.02717],[1124668800000,3.02717],[1124755200000,3.03074],[1124841600000,3.0253],[1124928000000,3.0253],[1125014400000,3.02001],[1125100800000,3.02053],[1125187200000,3.02053],[1125273600000,3.02053],[1125360000000,3.0037],[1125446400000,2.99382],[1125532800000,2.99145],[1125619200000,3.00175],[1125705600000,3.01208],[1125792000000,3.01208],[1125878400000,3.01208],[1125964800000,3.01796],[1126051200000,3.01507],[1126137600000,3.01152],[1126224000000,3.01032],[1126310400000,3.01234],[1126396800000,3.01234],[1126483200000,3.01234],[1126569600000,null],[1126656000000,null],[1126742400000,3.01039],[1126828800000,null],[1126915200000,null],[1127001600000,3.00818],[1127088000000,3.00818],[1127174400000,3.00205],[1127260800000,3.00488],[1127347200000,3.00771],[1127433600000,3.00644],[1127520000000,3.00171],[1127606400000,3.00171],[1127692800000,3.00171],[1127779200000,2.99028],[1127865600000,2.98338],[1127952000000,2.98399],[1128038400000,2.99176],[1128124800000,2.98787],[1128211200000,2.98787],[1128297600000,2.98787],[1128384000000,2.97691],[1128470400000,2.98155],[1128556800000,2.9835],[1128643200000,2.99774],[1128729600000,2.99874],[1128816000000,2.99874],[1128902400000,2.99874],[1128988800000,2.99619],[1129075200000,2.99099],[1129161600000,2.98501],[1129248000000,2.98289],[1129334400000,2.98527],[1129420800000,2.98527],[1129507200000,2.98527],[1129593600000,2.98393],[1129680000000,2.97732],[1129766400000,2.97998],[1129852800000,2.97925],[1129939200000,2.98101],[1130025600000,2.98101],[1130112000000,2.98101],[1130198400000,2.97936],[1130284800000,2.98299],[1130371200000,2.98329],[1130457600000,2.99192],[1130544000000,2.98543],[1130630400000,2.98543],[1130716800000,2.98543],[1130803200000,2.9814],[1130889600000,2.97958],[1130976000000,2.97619],[1131062400000,2.97709],[1131148800000,2.97353],[1131235200000,2.97353],[1131321600000,2.97353],[1131408000000,2.97011],[1131494400000,2.96683],[1131580800000,2.9686],[1131667200000,2.96768],[1131753600000,2.96595],[1131840000000,2.96595],[1131926400000,2.96595],[1132012800000,2.96212],[1132099200000,2.96236],[1132185600000,2.964],[1132272000000,2.96975],[1132358400000,2.96794],[1132444800000,2.96794],[1132531200000,2.96794],[1132617600000,2.97469],[1132704000000,2.9683],[1132790400000,2.98029],[1132876800000,2.98656],[1132963200000,2.98373],[1133049600000,2.98373],[1133136000000,2.98373],[1133222400000,2.97719],[1133308800000,2.98729],[1133395200000,2.98286],[1133481600000,2.98862],[1133568000000,2.98529],[1133654400000,2.98529],[1133740800000,2.98529],[1133827200000,2.99422],[1133913600000,2.99377],[1134000000000,2.99314],[1134086400000,2.99542],[1134172800000,3.00032],[1134259200000,3.00032],[1134345600000,3.00032],[1134432000000,3.0031],[1134518400000,3.01604],[1134604800000,3.0207],[1134691200000,3.02929],[1134777600000,3.02556],[1134864000000,3.02556],[1134950400000,3.02556],[1135036800000,3.03421],[1135123200000,3.03609],[1135209600000,3.0298],[1135296000000,3.02055],[1135382400000,3.03107],[1135468800000,3.03107],[1135555200000,3.03107],[1135641600000,3.03107],[1135728000000,3.03021],[1135814400000,3.03015],[1135900800000,3.03359]], 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, 3.227333],[1105747200000, 3.227333],[1108425600000, 3.232640],[1110844800000, 3.244144],[1113523200000, 3.140067],[1116115200000, 3.060366],[1118793600000, 3.026872],[1121385600000, 3.003022],[1124064000000, 3.037624],[1126742400000, 3.004758],[1129334400000, 2.986057],[1132012800000, 2.973117],[1134604800000, 3.012984]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });