$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1356998400000,4.46793],[1357084800000,4.46793],[1357171200000,4.46793],[1357257600000,4.48421],[1357344000000,4.46622],[1357430400000,4.46622],[1357516800000,4.46622],[1357603200000,4.46622],[1357689600000,4.49278],[1357776000000,4.4958],[1357862400000,4.50321],[1357948800000,4.51697],[1358035200000,4.51697],[1358121600000,4.51697],[1358208000000,4.51421],[1358294400000,4.50928],[1358380800000,4.51588],[1358467200000,4.54702],[1358553600000,4.53959],[1358640000000,4.53959],[1358726400000,4.53959],[1358812800000,4.53152],[1358899200000,4.51163],[1358985600000,4.51641],[1359072000000,4.50947],[1359158400000,4.52591],[1359244800000,4.52591],[1359331200000,4.52591],[1359417600000,4.52759],[1359504000000,4.5104],[1359590400000,4.51743],[1359676800000,4.53615],[1359763200000,4.55617],[1359849600000,4.55617],[1359936000000,4.55617],[1360022400000,4.55322],[1360108800000,4.53921],[1360195200000,4.52852],[1360281600000,4.52269],[1360368000000,4.50915],[1360454400000,4.50915],[1360540800000,4.50915],[1360627200000,4.50784],[1360713600000,4.50186],[1360800000000,4.52941],[1360886400000,4.51272],[1360972800000,4.51836],[1361059200000,4.51836],[1361145600000,4.51836],[1361232000000,4.52463],[1361318400000,4.49825],[1361404800000,4.49169],[1361491200000,4.45535],[1361577600000,4.45855],[1361664000000,4.45855],[1361750400000,4.45855],[1361836800000,4.45324],[1361923200000,4.42207],[1362009600000,4.42827],[1362096000000,4.45039],[1362182400000,4.42976],[1362268800000,4.42976],[1362355200000,4.42976],[1362441600000,4.43461],[1362528000000,4.45388],[1362614400000,4.45918],[1362700800000,4.44264],[1362787200000,4.44264],[1362873600000,4.44264],[1362960000000,4.44264],[1363046400000,4.43131],[1363132800000,4.43648],[1363219200000,4.41332],[1363305600000,4.40849],[1363392000000,4.41969],[1363478400000,4.41969],[1363564800000,4.41969],[1363651200000,4.40388],[1363737600000,4.40093],[1363824000000,4.39174],[1363910400000,4.40511],[1363996800000,4.39313],[1364083200000,4.39313],[1364169600000,4.39313],[1364256000000,4.39431],[1364342400000,4.39571],[1364428800000,4.38549],[1364515200000,4.40937],[1364601600000,4.40937],[1364688000000,4.40937],[1364774400000,4.40937],[1364860800000,4.40937],[1364947200000,4.42944],[1365033600000,4.41862],[1365120000000,4.42071],[1365206400000,4.44155],[1365292800000,4.44155],[1365379200000,4.44155],[1365465600000,4.46904],[1365552000000,4.48334],[1365638400000,4.47567],[1365724800000,4.46898],[1365811200000,4.46729],[1365897600000,4.46729],[1365984000000,4.46729],[1366070400000,4.46555],[1366156800000,4.46098],[1366243200000,4.45624],[1366329600000,4.45174],[1366416000000,4.4479],[1366502400000,4.4479],[1366588800000,4.4479],[1366675200000,4.43142],[1366761600000,4.4224],[1366848000000,4.42822],[1366934400000,4.44131],[1367020800000,4.43642],[1367107200000,4.43642],[1367193600000,4.43642],[1367280000000,4.45611],[1367366400000,4.44237],[1367452800000,4.44237],[1367539200000,4.44237],[1367625600000,4.44237],[1367712000000,4.44237],[1367798400000,4.44237],[1367884800000,4.44237],[1367971200000,4.44029],[1368057600000,4.45431],[1368144000000,4.45431],[1368230400000,4.45431],[1368316800000,4.45431],[1368403200000,4.45431],[1368489600000,4.42188],[1368576000000,4.41271],[1368662400000,4.38211],[1368748800000,4.36733],[1368835200000,4.35008],[1368921600000,4.35008],[1369008000000,4.35008],[1369094400000,4.3282],[1369180800000,4.3231],[1369267200000,4.34171],[1369353600000,4.31526],[1369440000000,4.3249],[1369526400000,4.3249],[1369612800000,4.3249],[1369699200000,4.33251],[1369785600000,4.32475],[1369872000000,4.29049],[1369958400000,4.26223],[1370044800000,4.25077],[1370131200000,4.25077],[1370217600000,4.25077],[1370304000000,4.22568],[1370390400000,4.26806],[1370476800000,4.24709],[1370563200000,4.23252],[1370649600000,4.24288],[1370736000000,4.24288],[1370822400000,4.24288],[1370908800000,4.21425],[1370995200000,4.21465],[1371081600000,4.26094],[1371168000000,4.27468],[1371254400000,4.30943],[1371340800000,4.30943],[1371427200000,4.30943],[1371513600000,4.2802],[1371600000000,4.24756],[1371686400000,4.24575],[1371772800000,4.16631],[1371859200000,4.12885],[1371945600000,4.12885],[1372032000000,4.12885],[1372118400000,4.12885],[1372204800000,4.14695],[1372291200000,4.12967],[1372377600000,4.15496],[1372464000000,4.15496],[1372550400000,4.15496],[1372636800000,4.15496],[1372723200000,4.15175],[1372809600000,4.1515],[1372896000000,4.09996],[1372982400000,4.09506],[1373068800000,4.10091],[1373155200000,4.10091],[1373241600000,4.10091],[1373328000000,4.1043],[1373414400000,4.11805],[1373500800000,4.10676],[1373587200000,4.11139],[1373673600000,4.06972],[1373760000000,4.06972],[1373846400000,4.06972],[1373932800000,4.11038],[1374019200000,4.15569],[1374105600000,4.1502],[1374192000000,4.16577],[1374278400000,4.15793],[1374364800000,4.15793],[1374451200000,null],[1374537600000,4.16875],[1374624000000,4.1813],[1374710400000,4.18844],[1374796800000,4.15055],[1374883200000,4.1575],[1374969600000,4.1575],[1375056000000,4.1575],[1375142400000,4.15379],[1375228800000,4.15248],[1375315200000,4.14109],[1375401600000,4.12699],[1375488000000,4.10453],[1375574400000,null],[1375660800000,4.10453],[1375747200000,4.13434],[1375833600000,4.14313],[1375920000000,4.13592],[1376006400000,4.15382],[1376092800000,4.16613],[1376179200000,4.16613],[1376265600000,4.16613],[1376352000000,4.15188],[1376438400000,4.1456],[1376524800000,4.12451],[1376611200000,4.13552],[1376697600000,4.12578],[1376784000000,4.12578],[1376870400000,4.12578],[1376956800000,4.09359],[1377043200000,4.10265],[1377129600000,4.08548],[1377216000000,4.02414],[1377302400000,4.007],[1377388800000,4.007],[1377475200000,4.007],[1377561600000,4.007],[1377648000000,3.93659],[1377734400000,3.85832],[1377820800000,3.93554],[1377907200000,3.9373],[1377993600000,3.9373],[1378080000000,3.9373],[1378166400000,3.96245],[1378252800000,3.90157],[1378339200000,3.89334],[1378425600000,3.84828],[1378512000000,3.87866],[1378598400000,3.87866],[1378684800000,3.87866],[1378771200000,3.91243],[1378857600000,3.9538],[1378944000000,3.97344],[1379030400000,3.95263],[1379116800000,3.94238],[1379203200000,3.94238],[1379289600000,3.94238],[1379376000000,4.01483],[1379462400000,3.97759],[1379548800000,3.9965],[1379635200000,4.08687],[1379721600000,4.0305],[1379808000000,4.0305],[1379894400000,4.0305],[1379980800000,4.01672],[1380067200000,3.99428],[1380153600000,3.98484],[1380240000000,3.96536],[1380326400000,3.92517],[1380412800000,3.92517],[1380499200000,3.92517],[1380585600000,3.92386],[1380672000000,3.97276],[1380758400000,3.9606],[1380844800000,3.98872],[1380931200000,4.0015],[1381017600000,4.0015],[1381104000000,4.0015],[1381190400000,4.00491],[1381276800000,4.0281],[1381363200000,4.02224],[1381449600000,4.02224],[1381536000000,4.04043],[1381622400000,4.04043],[1381708800000,4.04043],[1381795200000,4.02603],[1381881600000,4.02004],[1381968000000,4.02514],[1382054400000,4.061],[1382140800000,4.06558],[1382227200000,4.06558],[1382313600000,4.06558],[1382400000000,4.04279],[1382486400000,4.03173],[1382572800000,4.04712],[1382659200000,4.03951],[1382745600000,4.02381],[1382832000000,4.02381],[1382918400000,4.02381],[1383004800000,4.02497],[1383091200000,4.0181],[1383177600000,4.0187],[1383264000000,4.01342],[1383350400000,null],[1383436800000,3.96101],[1383523200000,3.96101],[1383609600000,3.95825],[1383696000000,3.9462],[1383782400000,3.93909],[1383868800000,3.94164],[1383955200000,3.95003],[1384041600000,3.95003],[1384128000000,3.95003],[1384214400000,3.92356],[1384300800000,3.9018],[1384387200000,3.89516],[1384473600000,3.90523],[1384560000000,3.92034],[1384646400000,3.92034],[1384732800000,3.92034],[1384819200000,3.9577],[1384905600000,3.97515],[1384992000000,3.97549],[1385078400000,3.95889],[1385164800000,3.96497],[1385251200000,3.96497],[1385337600000,3.96497],[1385424000000,3.9962],[1385510400000,3.96925],[1385596800000,3.95188],[1385683200000,3.96152],[1385769600000,3.9597],[1385856000000,3.9597],[1385942400000,3.9597],[1386028800000,3.93087],[1386115200000,3.92155],[1386201600000,3.90668],[1386288000000,3.91077],[1386374400000,3.91708],[1386460800000,3.91708],[1386547200000,3.91708],[1386633600000,3.93626],[1386720000000,3.93892],[1386806400000,3.93013],[1386892800000,3.92204],[1386979200000,3.91969],[1387065600000,3.91969],[1387152000000,3.91969],[1387238400000,3.93677],[1387324800000,3.91715],[1387411200000,3.90574],[1387497600000,3.85491],[1387584000000,3.81851],[1387670400000,3.81851],[1387756800000,3.81851],[1387843200000,3.82136],[1387929600000,3.841],[1388016000000,3.841],[1388102400000,3.841],[1388188800000,3.69789],[1388275200000,3.69789],[1388361600000,3.69789]], 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: [[1358208000000, 4.506546],[1358208000000, 4.506546],[1360886400000, 4.504708],[1363305600000, 4.419073],[1365984000000, 4.445934],[1368576000000, 4.385021],[1371254400000, 4.218129],[1373846400000, 4.132377],[1376524800000, 4.082640],[1379203200000, 3.954656],[1381795200000, 4.021695],[1384473600000, 3.950283],[1387065600000, 3.872029]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });