$(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: [[1262736000000,0.649097],[1262822400000,0.649097],[1262908800000,0.649097],[1262995200000,0.649097],[1263081600000,0.649097],[1263168000000,0.649097],[1263254400000,0.648764],[1263340800000,0.650028],[1263427200000,0.651372],[1263513600000,0.651184],[1263600000000,0.651457],[1263686400000,0.651457],[1263772800000,0.651457],[1263859200000,0.652307],[1263945600000,0.651113],[1264032000000,0.648912],[1264118400000,0.642651],[1264204800000,0.639894],[1264291200000,0.639894],[1264377600000,0.639894],[1264464000000,0.640312],[1264550400000,0.640369],[1264636800000,0.639982],[1264723200000,0.639615],[1264809600000,0.638444],[1264896000000,0.638444],[1264982400000,0.638444],[1265068800000,0.637303],[1265155200000,0.634978],[1265241600000,0.629342],[1265328000000,0.626239],[1265414400000,0.626652],[1265500800000,0.626652],[1265587200000,0.626652],[1265673600000,0.627962],[1265760000000,0.629088],[1265846400000,0.629198],[1265932800000,0.629277],[1266019200000,0.628559],[1266105600000,0.628559],[1266192000000,0.628559],[1266278400000,0.62816],[1266364800000,0.628206],[1266451200000,0.627688],[1266537600000,0.627181],[1266624000000,0.62694],[1266710400000,0.62694],[1266796800000,0.62694],[1266883200000,0.625797],[1266969600000,0.625328],[1267056000000,0.624927],[1267142400000,0.624238],[1267228800000,0.624014],[1267315200000,0.624014],[1267401600000,0.624014],[1267488000000,0.624253],[1267574400000,0.623711],[1267660800000,0.624413],[1267747200000,0.624756],[1267833600000,0.625513],[1267920000000,0.625513],[1268006400000,0.625513],[1268092800000,0.625513],[1268179200000,0.626535],[1268265600000,0.62698],[1268352000000,0.629319],[1268438400000,0.630542],[1268524800000,0.633009],[1268611200000,0.633009],[1268697600000,0.634224],[1268784000000,0.63704],[1268870400000,0.637107],[1268956800000,0.639369],[1269043200000,0.638333],[1269129600000,0.638333],[1269216000000,0.638333],[1269302400000,0.638308],[1269388800000,0.638209],[1269475200000,0.63716],[1269561600000,0.637335],[1269648000000,0.637937],[1269734400000,0.637937],[1269820800000,0.637937],[1269907200000,0.637883],[1269993600000,0.638248],[1270080000000,0.638897],[1270166400000,0.639484],[1270252800000,0.639711],[1270339200000,0.639711],[1270425600000,0.639711],[1270512000000,0.639711],[1270598400000,0.63982],[1270684800000,0.6402],[1270771200000,0.6404],[1270857600000,0.640013],[1270944000000,0.640013],[1271030400000,0.640013],[1271116800000,0.640013],[1271203200000,0.639166],[1271289600000,0.637696],[1271376000000,0.635747],[1271462400000,0.633213],[1271548800000,0.633213],[1271635200000,0.633213],[1271721600000,0.630636],[1271808000000,0.630773],[1271894400000,0.629777],[1271980800000,0.629132],[1272067200000,0.629346],[1272153600000,0.629346],[1272240000000,0.629346],[1272326400000,0.62964],[1272412800000,0.630095],[1272499200000,0.630265],[1272585600000,0.630215],[1272672000000,0.629379],[1272758400000,0.629379],[1272844800000,0.629379],[1272931200000,0.629379],[1273017600000,0.629379],[1273104000000,0.628058],[1273190400000,0.628376],[1273276800000,0.628685],[1273363200000,0.628685],[1273449600000,0.628685],[1273536000000,0.628685],[1273622400000,0.630386],[1273708800000,0.63146],[1273795200000,0.631939],[1273881600000,0.631772],[1273968000000,null],[1274054400000,0.631772],[1274140800000,0.629654],[1274227200000,0.627426],[1274313600000,0.624799],[1274400000000,0.623119],[1274486400000,0.620032],[1274572800000,0.620032],[1274659200000,0.620032],[1274745600000,0.620032],[1274832000000,0.620372],[1274918400000,0.620442],[1275004800000,0.620827],[1275091200000,0.61987],[1275177600000,0.61987],[1275264000000,0.61987],[1275350400000,0.617523],[1275436800000,0.615121],[1275523200000,0.613285],[1275609600000,0.612555],[1275696000000,0.611858],[1275782400000,0.611858],[1275868800000,0.611858],[1275955200000,0.612185],[1276041600000,0.612734],[1276128000000,0.613051],[1276214400000,0.613395],[1276300800000,0.613058],[1276387200000,0.613058],[1276473600000,0.613058],[1276560000000,0.613116],[1276646400000,0.613271],[1276732800000,0.613322],[1276819200000,0.613702],[1276905600000,0.613711],[1276992000000,0.613711],[1277078400000,0.613711],[1277164800000,0.613818],[1277251200000,0.613933],[1277337600000,0.61432],[1277424000000,0.614833],[1277510400000,0.615285],[1277596800000,0.615285],[1277683200000,0.615285],[1277769600000,0.615285],[1277856000000,0.616098],[1277942400000,0.615668],[1278028800000,0.615942],[1278115200000,0.61615],[1278201600000,0.61615],[1278288000000,0.61615],[1278374400000,0.616156],[1278460800000,0.616289],[1278547200000,0.616416],[1278633600000,0.61738],[1278720000000,0.61816],[1278806400000,0.61816],[1278892800000,0.61816],[1278979200000,0.618932],[1279065600000,0.620471],[1279152000000,0.622083],[1279238400000,0.624658],[1279324800000,0.62662],[1279411200000,0.62662],[1279497600000,0.62662],[1279584000000,0.62889],[1279670400000,0.632376],[1279756800000,0.633751],[1279843200000,0.635635],[1279929600000,0.638623],[1280016000000,0.638623],[1280102400000,0.638623],[1280188800000,0.639671],[1280275200000,0.640472],[1280361600000,0.641505],[1280448000000,0.642743],[1280534400000,0.643262],[1280620800000,0.643262],[1280707200000,0.643262],[1280793600000,0.643468],[1280880000000,0.644728],[1280966400000,0.64679],[1281052800000,0.64904],[1281139200000,0.651028],[1281225600000,null],[1281312000000,0.651028],[1281398400000,0.656548],[1281484800000,0.658367],[1281571200000,0.66003],[1281657600000,0.661591],[1281744000000,0.664091],[1281830400000,0.664091],[1281916800000,0.664091],[1282003200000,0.663218],[1282089600000,0.659848],[1282176000000,0.657128],[1282262400000,0.647819],[1282348800000,0.641582],[1282435200000,null],[1282521600000,null],[1282608000000,0.641557],[1282694400000,0.641557],[1282780800000,0.644229],[1282867200000,0.646727],[1282953600000,0.646481],[1283040000000,0.646481],[1283126400000,0.646481],[1283212800000,0.646407],[1283299200000,0.646456],[1283385600000,0.647921],[1283472000000,0.649132],[1283558400000,0.648803],[1283644800000,0.648803],[1283731200000,0.648803],[1283817600000,0.646745],[1283904000000,0.643707],[1283990400000,0.641514],[1284076800000,0.640812],[1284163200000,0.639791],[1284249600000,0.639791],[1284336000000,0.639791],[1284422400000,0.638639],[1284508800000,0.638796],[1284595200000,0.638506],[1284681600000,0.639063],[1284768000000,0.640313],[1284854400000,0.640313],[1284940800000,0.640313],[1285027200000,0.647327],[1285113600000,0.650966],[1285200000000,0.65125],[1285286400000,0.650795],[1285372800000,0.650642],[1285459200000,0.650642],[1285545600000,0.650642],[1285632000000,0.651387],[1285718400000,0.652574],[1285804800000,0.656439],[1285891200000,0.658294],[1285977600000,0.662182],[1286064000000,0.662182],[1286150400000,0.662182],[1286236800000,0.663527],[1286323200000,0.66534],[1286409600000,0.668297],[1286496000000,0.670154],[1286582400000,0.672188],[1286668800000,0.672188],[1286755200000,0.672188],[1286841600000,0.674446],[1286928000000,0.677537],[1287014400000,0.678525],[1287100800000,0.67843],[1287187200000,0.679929],[1287273600000,0.679929],[1287360000000,0.679929],[1287446400000,0.680544],[1287532800000,0.681923],[1287619200000,0.680972],[1287705600000,0.680579],[1287792000000,0.674884],[1287878400000,0.674884],[1287964800000,0.674884],[1288051200000,0.667747],[1288137600000,0.66633],[1288224000000,0.667071],[1288310400000,0.668204],[1288396800000,0.669709],[1288483200000,0.669709],[1288569600000,0.669709],[1288656000000,0.670429],[1288742400000,0.670576],[1288828800000,0.672255],[1288915200000,0.673787],[1289001600000,0.675979],[1289088000000,0.675979],[1289174400000,0.675979],[1289260800000,0.679061],[1289347200000,0.680169],[1289433600000,0.684226],[1289520000000,0.687072],[1289606400000,0.686109],[1289692800000,0.686109],[1289779200000,0.686109],[1289865600000,0.684137],[1289952000000,0.677616],[1290038400000,0.672265],[1290124800000,0.669131],[1290211200000,0.665468],[1290297600000,0.665468],[1290384000000,0.665468],[1290470400000,0.66397],[1290556800000,0.664371],[1290643200000,0.667095],[1290729600000,0.666194],[1290816000000,0.661539],[1290902400000,0.661539],[1290988800000,0.661539],[1291075200000,0.658209],[1291161600000,0.654815],[1291248000000,0.651671],[1291334400000,0.651776],[1291420800000,0.650259],[1291507200000,0.650259],[1291593600000,0.650259],[1291680000000,0.649422],[1291766400000,0.646993],[1291852800000,0.645024],[1291939200000,0.644757],[1292025600000,0.646473],[1292112000000,0.646473],[1292198400000,0.646473],[1292284800000,0.649694],[1292371200000,0.656891],[1292457600000,0.664494],[1292544000000,0.665922],[1292630400000,0.666407],[1292716800000,0.666407],[1292803200000,0.666407],[1292889600000,0.663708],[1292976000000,0.658173],[1293062400000,0.656957],[1293148800000,0.65789],[1293235200000,0.658329],[1293321600000,0.658329],[1293408000000,0.658329],[1293494400000,0.656569],[1293580800000,0.653991],[1293667200000,0.654115]], 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: [[1263513600000, 0.646236],[1263513600000, 0.646236],[1266192000000, 0.628137],[1268611200000, 0.632461],[1271289600000, 0.635284],[1273881600000, 0.626059],[1276560000000, 0.613776],[1279152000000, 0.626483],[1281830400000, 0.651105],[1284508800000, 0.645689],[1287100800000, 0.672093],[1289779200000, 0.672585],[1292371200000, 0.654914]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });