$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1326758400000,1.2645],[1326844800000,null],[1326931200000,null],[1327017600000,1.26502],[1327104000000,1.26125],[1327190400000,1.26125],[1327276800000,1.26125],[1327363200000,1.26557],[1327449600000,1.26601],[1327536000000,1.26545],[1327622400000,1.26681],[1327708800000,1.26543],[1327795200000,1.26543],[1327881600000,1.26543],[1327968000000,1.26447],[1328054400000,1.26649],[1328140800000,1.2669],[1328227200000,1.26698],[1328313600000,1.26616],[1328400000000,1.26616],[1328486400000,1.26616],[1328572800000,1.26567],[1328659200000,1.26589],[1328745600000,1.26842],[1328832000000,1.2682],[1328918400000,1.26943],[1329004800000,1.26943],[1329091200000,1.26943],[1329177600000,1.26963],[1329264000000,1.26894],[1329350400000,1.26899],[1329436800000,1.2674],[1329523200000,1.26856],[1329609600000,1.26856],[1329696000000,1.26856],[1329782400000,1.26884],[1329868800000,1.26846],[1329955200000,1.26824],[1330041600000,1.26782],[1330128000000,1.26813],[1330214400000,1.26813],[1330300800000,1.26813],[1330387200000,1.26741],[1330473600000,1.26764],[1330560000000,1.26897],[1330646400000,1.26783],[1330732800000,1.26839],[1330819200000,1.26839],[1330905600000,1.26839],[1330992000000,1.26632],[1331078400000,1.26549],[1331164800000,1.26481],[1331251200000,1.26481],[1331337600000,1.26481],[1331424000000,1.26481],[1331510400000,1.26481],[1331596800000,1.26207],[1331683200000,1.26127],[1331769600000,1.26074],[1331856000000,1.26082],[1331942400000,1.26295],[1332028800000,1.26295],[1332115200000,1.26295],[1332201600000,1.26369],[1332288000000,1.2637],[1332374400000,1.26389],[1332460800000,1.26625],[1332547200000,1.26719],[1332633600000,1.26719],[1332720000000,1.26719],[1332806400000,1.26671],[1332892800000,1.26793],[1332979200000,1.26842],[1333065600000,1.26715],[1333152000000,1.26873],[1333238400000,1.26873],[1333324800000,1.26873],[1333411200000,1.26903],[1333497600000,1.26949],[1333584000000,1.26839],[1333670400000,1.26679],[1333756800000,1.26679],[1333843200000,null],[1333929600000,1.26679],[1334016000000,1.26639],[1334102400000,1.26529],[1334188800000,1.26722],[1334275200000,1.26598],[1334361600000,1.2669],[1334448000000,1.2669],[1334534400000,1.2669],[1334620800000,1.2669],[1334707200000,1.26706],[1334793600000,1.26774],[1334880000000,1.2668],[1334966400000,1.26696],[1335052800000,1.26696],[1335139200000,1.26696],[1335225600000,1.26696],[1335312000000,1.2669],[1335398400000,1.2668],[1335484800000,1.27072],[1335571200000,1.27041],[1335657600000,1.27041],[1335744000000,1.27041],[1335830400000,1.27041],[1335916800000,1.27041],[1336003200000,1.27041],[1336089600000,1.27134],[1336176000000,1.26701],[1336262400000,1.26701],[1336348800000,1.26701],[1336435200000,1.26996],[1336521600000,1.26945],[1336608000000,1.26945],[1336694400000,1.26538],[1336780800000,1.26618],[1336867200000,1.26618],[1336953600000,1.26618],[1337040000000,1.26376],[1337126400000,1.26442],[1337212800000,1.26388],[1337299200000,1.26336],[1337385600000,1.2634],[1337472000000,1.2634],[1337558400000,1.2634],[1337644800000,1.2641],[1337731200000,1.26543],[1337817600000,1.26263],[1337904000000,1.26175],[1337990400000,1.26178],[1338076800000,1.26178],[1338163200000,1.26178],[1338249600000,1.26236],[1338336000000,1.26215],[1338422400000,1.25964],[1338508800000,1.255],[1338595200000,1.25479],[1338681600000,1.25479],[1338768000000,1.25479],[1338854400000,1.25479],[1338940800000,1.25502],[1339027200000,1.25592],[1339113600000,1.25593],[1339200000000,1.25369],[1339286400000,1.25369],[1339372800000,1.25369],[1339459200000,1.25946],[1339545600000,1.25439],[1339632000000,1.25502],[1339718400000,1.26322],[1339804800000,1.25437],[1339891200000,1.25437],[1339977600000,1.25437],[1340064000000,1.25697],[1340150400000,1.25753],[1340236800000,1.2565],[1340323200000,1.25572],[1340409600000,1.25572],[1340496000000,1.25572],[1340582400000,1.25572],[1340668800000,1.25603],[1340755200000,1.25595],[1340841600000,1.25716],[1340928000000,1.25716],[1341014400000,1.25716],[1341100800000,1.25716],[1341187200000,1.25716],[1341273600000,1.25894],[1341360000000,1.25816],[1341446400000,1.25912],[1341532800000,1.25728],[1341619200000,1.25559],[1341705600000,1.25567],[1341792000000,1.25567],[1341878400000,1.25431],[1341964800000,1.25544],[1342051200000,1.25911],[1342137600000,1.25406],[1342224000000,1.25107],[1342310400000,1.25107],[1342396800000,1.25107],[1342483200000,1.25286],[1342569600000,1.25395],[1342656000000,1.25469],[1342742400000,1.25401],[1342828800000,1.2538],[1342915200000,1.2538],[1343001600000,1.2538],[1343088000000,1.25164],[1343174400000,1.25167],[1343260800000,1.25116],[1343347200000,1.25179],[1343433600000,1.25269],[1343520000000,1.25269],[1343606400000,1.25269],[1343692800000,1.25293],[1343779200000,1.25643],[1343865600000,1.25505],[1343952000000,1.2553],[1344038400000,1.2543],[1344124800000,1.2543],[1344211200000,1.2543],[1344297600000,1.254],[1344384000000,1.25546],[1344470400000,1.2565],[1344556800000,1.2569],[1344643200000,1.25672],[1344729600000,1.25672],[1344816000000,1.25672],[1344902400000,1.25623],[1344988800000,1.25698],[1345075200000,1.2563],[1345161600000,1.25551],[1345248000000,1.25706],[1345334400000,1.25706],[1345420800000,1.25706],[1345507200000,1.25665],[1345593600000,1.25719],[1345680000000,1.25839],[1345766400000,1.25788],[1345852800000,1.25788],[1345939200000,1.25788],[1346025600000,1.25788],[1346112000000,1.25715],[1346198400000,1.25812],[1346284800000,1.25818],[1346371200000,1.25883],[1346457600000,1.25902],[1346544000000,1.25902],[1346630400000,1.25902],[1346716800000,1.26065],[1346803200000,1.25927],[1346889600000,1.2589],[1346976000000,1.25991],[1347062400000,1.25998],[1347148800000,1.25998],[1347235200000,1.25998],[1347321600000,1.26119],[1347408000000,1.26156],[1347494400000,1.26333],[1347580800000,1.26252],[1347667200000,1.2657],[1347753600000,1.2657],[1347840000000,1.2657],[1347926400000,1.26408],[1348012800000,1.2648],[1348099200000,1.26676],[1348185600000,1.26783],[1348272000000,1.26764],[1348358400000,1.26764],[1348444800000,1.26764],[1348531200000,1.26686],[1348617600000,1.26726],[1348704000000,1.26814],[1348790400000,1.26805],[1348876800000,1.27182],[1348963200000,1.27182],[1349049600000,1.27182],[1349136000000,1.27185],[1349222400000,1.26377],[1349308800000,1.26234],[1349395200000,1.26102],[1349481600000,1.26389],[1349568000000,1.26389],[1349654400000,1.26389],[1349740800000,1.27087],[1349827200000,1.27089],[1349913600000,1.26859],[1350000000000,1.27338],[1350086400000,1.27566],[1350172800000,1.27566],[1350259200000,1.27566],[1350345600000,1.27496],[1350432000000,1.2759],[1350518400000,1.27796],[1350604800000,1.27859],[1350691200000,1.27817],[1350777600000,1.27817],[1350864000000,1.27817],[1350950400000,1.27792],[1351036800000,1.27846],[1351123200000,1.27935],[1351209600000,1.28052],[1351296000000,1.2791],[1351382400000,1.2791],[1351468800000,1.2791],[1351555200000,1.28019],[1351641600000,1.28091],[1351728000000,1.28149],[1351814400000,1.28083],[1351900800000,1.28059],[1351987200000,1.28059],[1352073600000,1.28059],[1352160000000,1.27946],[1352246400000,1.27623],[1352332800000,1.27716],[1352419200000,1.27731],[1352505600000,1.27986],[1352592000000,1.27986],[1352678400000,1.27986],[1352764800000,1.28308],[1352851200000,1.28266],[1352937600000,1.28397],[1353024000000,1.28218],[1353110400000,1.28186],[1353196800000,1.28186],[1353283200000,1.28186],[1353369600000,1.28199],[1353456000000,1.28239],[1353542400000,1.28259],[1353628800000,1.28258],[1353715200000,1.28326],[1353801600000,1.28326],[1353888000000,1.28326],[1353974400000,1.28392],[1354060800000,1.28458],[1354147200000,1.2838],[1354233600000,1.28355],[1354320000000,1.28305],[1354406400000,1.28305],[1354492800000,1.28305],[1354579200000,1.28326],[1354665600000,1.28388],[1354752000000,1.28299],[1354838400000,1.28298],[1354924800000,1.28363],[1355011200000,1.28363],[1355097600000,1.28363],[1355184000000,1.28092],[1355270400000,1.27966],[1355356800000,1.27919],[1355443200000,1.27704],[1355529600000,1.2797],[1355616000000,1.2797],[1355702400000,1.2797],[1355788800000,1.28114],[1355875200000,1.2833],[1355961600000,1.28251],[1356048000000,1.2825],[1356134400000,1.28269],[1356220800000,1.28269],[1356307200000,1.28269],[1356393600000,1.28227],[1356480000000,1.28227],[1356566400000,1.28227],[1356652800000,1.28155],[1356739200000,1.28233],[1356825600000,1.28233]], 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: [[1326585600000, 1.264453],[1326585600000, 1.264453],[1329264000000, 1.267888],[1331769600000, 1.265472],[1334448000000, 1.267665],[1337040000000, 1.265336],[1339718400000, 1.255822],[1342310400000, 1.254356],[1344988800000, 1.256609],[1347667200000, 1.264058],[1350259200000, 1.273864],[1352937600000, 1.281549],[1355529600000, 1.281997]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });