$(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: [[1326758400000,0.669538],[1326844800000,null],[1326931200000,null],[1327017600000,0.669387],[1327104000000,0.670448],[1327190400000,0.670448],[1327276800000,0.670448],[1327363200000,0.673353],[1327449600000,0.674222],[1327536000000,0.676717],[1327622400000,0.677216],[1327708800000,0.677306],[1327795200000,0.677306],[1327881600000,0.677306],[1327968000000,0.676543],[1328054400000,0.677995],[1328140800000,0.676652],[1328227200000,0.676738],[1328313600000,0.6728],[1328400000000,0.6728],[1328486400000,0.6728],[1328572800000,0.6699],[1328659200000,0.666636],[1328745600000,0.665248],[1328832000000,0.665664],[1328918400000,0.66799],[1329004800000,0.66799],[1329091200000,0.66799],[1329177600000,0.670993],[1329264000000,0.67483],[1329350400000,0.675744],[1329436800000,0.675824],[1329523200000,0.674574],[1329609600000,0.674574],[1329696000000,0.674574],[1329782400000,0.671348],[1329868800000,0.673349],[1329955200000,0.674489],[1330041600000,0.67327],[1330128000000,0.674009],[1330214400000,0.674009],[1330300800000,0.674009],[1330387200000,0.673955],[1330473600000,0.674581],[1330560000000,0.676558],[1330646400000,0.677448],[1330732800000,0.678104],[1330819200000,0.676892],[1330905600000,0.676892],[1330992000000,0.676393],[1331078400000,0.67529],[1331164800000,0.674181],[1331251200000,0.674181],[1331337600000,0.674181],[1331424000000,0.674181],[1331510400000,0.674181],[1331596800000,0.673117],[1331683200000,0.67347],[1331769600000,0.673579],[1331856000000,0.673653],[1331942400000,0.672534],[1332028800000,0.672534],[1332115200000,0.672534],[1332201600000,0.671991],[1332288000000,0.67124],[1332374400000,0.672364],[1332460800000,0.672877],[1332547200000,0.672304],[1332633600000,0.672304],[1332720000000,0.672304],[1332806400000,0.67322],[1332892800000,0.674662],[1332979200000,0.674838],[1333065600000,0.673994],[1333152000000,0.676196],[1333238400000,0.676196],[1333324800000,0.676196],[1333411200000,0.675104],[1333497600000,0.674016],[1333584000000,0.675538],[1333670400000,0.675304],[1333756800000,0.673857],[1333843200000,null],[1333929600000,0.673857],[1334016000000,0.674677],[1334102400000,0.674928],[1334188800000,0.675287],[1334275200000,0.676007],[1334361600000,0.677758],[1334448000000,0.677758],[1334534400000,0.677758],[1334620800000,0.677758],[1334707200000,0.678097],[1334793600000,0.678103],[1334880000000,0.677788],[1334966400000,0.676846],[1335052800000,0.676846],[1335139200000,0.676846],[1335225600000,0.677016],[1335312000000,0.676402],[1335398400000,0.677469],[1335484800000,0.677601],[1335571200000,0.678289],[1335657600000,0.678289],[1335744000000,0.678289],[1335830400000,0.678289],[1335916800000,0.678289],[1336003200000,0.678289],[1336089600000,0.681395],[1336176000000,0.680322],[1336262400000,0.680322],[1336348800000,0.680322],[1336435200000,0.678083],[1336521600000,0.676275],[1336608000000,0.676275],[1336694400000,0.673784],[1336780800000,0.673324],[1336867200000,0.673324],[1336953600000,0.673324],[1337040000000,0.67265],[1337126400000,0.673665],[1337212800000,0.674256],[1337299200000,0.673374],[1337385600000,0.673104],[1337472000000,0.673104],[1337558400000,0.673104],[1337644800000,0.671854],[1337731200000,0.672713],[1337817600000,0.672684],[1337904000000,0.673211],[1337990400000,0.670309],[1338076800000,0.670309],[1338163200000,0.670309],[1338249600000,0.669277],[1338336000000,0.668677],[1338422400000,0.667845],[1338508800000,0.665825],[1338595200000,0.665698],[1338681600000,0.665698],[1338768000000,0.665698],[1338854400000,0.665698],[1338940800000,0.663531],[1339027200000,0.664276],[1339113600000,0.664088],[1339200000000,0.664453],[1339286400000,0.664453],[1339372800000,0.664453],[1339459200000,0.664729],[1339545600000,0.66437],[1339632000000,0.663531],[1339718400000,0.663234],[1339804800000,0.663306],[1339891200000,0.663306],[1339977600000,0.663306],[1340064000000,0.662717],[1340150400000,0.662519],[1340236800000,0.662382],[1340323200000,0.660428],[1340409600000,0.659208],[1340496000000,0.659208],[1340582400000,0.659208],[1340668800000,0.656576],[1340755200000,0.655779],[1340841600000,0.651864],[1340928000000,0.651864],[1341014400000,0.651864],[1341100800000,0.651864],[1341187200000,0.651864],[1341273600000,0.652289],[1341360000000,0.652806],[1341446400000,0.653067],[1341532800000,0.653249],[1341619200000,0.653286],[1341705600000,0.653327],[1341792000000,0.653327],[1341878400000,0.652362],[1341964800000,0.651235],[1342051200000,0.650483],[1342137600000,0.649758],[1342224000000,0.648767],[1342310400000,0.648767],[1342396800000,0.648767],[1342483200000,0.647065],[1342569600000,0.646882],[1342656000000,0.645456],[1342742400000,0.645169],[1342828800000,0.644306],[1342915200000,0.644306],[1343001600000,0.644306],[1343088000000,0.643429],[1343174400000,0.642731],[1343260800000,0.640942],[1343347200000,0.639455],[1343433600000,0.637884],[1343520000000,0.637884],[1343606400000,0.637884],[1343692800000,0.6374],[1343779200000,0.637253],[1343865600000,0.637324],[1343952000000,0.637228],[1344038400000,0.63708],[1344124800000,0.63708],[1344211200000,0.63708],[1344297600000,0.637019],[1344384000000,0.636948],[1344470400000,0.63704],[1344556800000,0.637121],[1344643200000,0.637716],[1344729600000,0.637716],[1344816000000,0.637716],[1344902400000,0.638944],[1344988800000,0.641405],[1345075200000,0.641508],[1345161600000,0.642018],[1345248000000,0.642292],[1345334400000,0.642292],[1345420800000,0.642292],[1345507200000,0.64192],[1345593600000,0.641632],[1345680000000,0.640937],[1345766400000,0.640547],[1345852800000,0.640547],[1345939200000,0.640547],[1346025600000,0.640547],[1346112000000,0.640424],[1346198400000,0.640542],[1346284800000,0.640696],[1346371200000,0.64087],[1346457600000,0.64087],[1346544000000,0.64087],[1346630400000,0.64087],[1346716800000,0.641025],[1346803200000,0.641066],[1346889600000,0.641452],[1346976000000,0.641755],[1347062400000,0.641977],[1347148800000,0.641977],[1347235200000,0.641977],[1347321600000,0.642431],[1347408000000,0.642302],[1347494400000,0.642782],[1347580800000,0.643668],[1347667200000,0.643761],[1347753600000,0.643761],[1347840000000,0.643761],[1347926400000,0.645367],[1348012800000,0.644732],[1348099200000,0.64685],[1348185600000,0.646615],[1348272000000,0.646761],[1348358400000,0.646761],[1348444800000,0.646761],[1348531200000,0.646306],[1348617600000,0.646254],[1348704000000,0.645842],[1348790400000,0.644971],[1348876800000,0.645372],[1348963200000,0.645372],[1349049600000,0.645372],[1349136000000,0.645675],[1349222400000,0.645654],[1349308800000,0.646045],[1349395200000,0.646238],[1349481600000,0.646856],[1349568000000,0.646856],[1349654400000,0.646856],[1349740800000,0.648756],[1349827200000,0.651294],[1349913600000,0.651702],[1350000000000,0.652884],[1350086400000,0.654113],[1350172800000,0.654113],[1350259200000,0.654113],[1350345600000,0.655567],[1350432000000,0.656703],[1350518400000,0.656952],[1350604800000,0.657362],[1350691200000,0.656968],[1350777600000,0.656968],[1350864000000,0.656968],[1350950400000,0.656418],[1351036800000,0.655164],[1351123200000,0.654386],[1351209600000,0.65313],[1351296000000,0.652559],[1351382400000,0.652559],[1351468800000,0.652559],[1351555200000,0.65241],[1351641600000,0.652826],[1351728000000,0.651655],[1351814400000,0.650641],[1351900800000,0.649484],[1351987200000,0.649484],[1352073600000,0.649484],[1352160000000,0.649436],[1352246400000,0.648883],[1352332800000,0.648078],[1352419200000,0.648572],[1352505600000,0.648409],[1352592000000,0.648409],[1352678400000,0.648409],[1352764800000,0.648688],[1352851200000,0.649631],[1352937600000,0.649653],[1353024000000,0.650102],[1353110400000,0.649901],[1353196800000,0.649901],[1353283200000,0.649901],[1353369600000,0.649294],[1353456000000,0.64941],[1353542400000,0.648872],[1353628800000,0.647736],[1353715200000,0.646458],[1353801600000,0.646458],[1353888000000,0.646458],[1353974400000,0.645461],[1354060800000,0.644716],[1354147200000,0.645091],[1354233600000,0.645294],[1354320000000,0.645805],[1354406400000,0.645805],[1354492800000,0.645805],[1354579200000,0.646202],[1354665600000,0.647296],[1354752000000,0.648057],[1354838400000,0.649515],[1354924800000,0.650096],[1355011200000,0.650096],[1355097600000,0.650096],[1355184000000,0.651655],[1355270400000,0.65241],[1355356800000,0.652948],[1355443200000,0.653375],[1355529600000,0.65518],[1355616000000,0.65518],[1355702400000,0.65518],[1355788800000,0.656639],[1355875200000,0.657335],[1355961600000,0.659358],[1356048000000,0.660006],[1356134400000,0.660377],[1356220800000,0.660377],[1356307200000,0.660377],[1356393600000,0.660977],[1356480000000,0.660977],[1356566400000,0.661229],[1356652800000,0.662588],[1356739200000,0.662583],[1356825600000,0.662583]], 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, 0.673864],[1326585600000, 0.673864],[1329264000000, 0.672598],[1331769600000, 0.674135],[1334448000000, 0.676548],[1337040000000, 0.674260],[1339718400000, 0.661776],[1342310400000, 0.647107],[1344988800000, 0.639493],[1347667200000, 0.643809],[1350259200000, 0.652130],[1352937600000, 0.648466],[1355529600000, 0.654925]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });