$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[978307200000,5.4345],[978393600000,5.4345],[978480000000,5.4345],[978566400000,5.4343],[978652800000,5.4345],[978739200000,5.4343],[978825600000,5.4343],[978912000000,5.4343],[978998400000,5.4343],[979084800000,5.434],[979171200000,5.434],[979257600000,5.4335],[979344000000,5.4334],[979430400000,5.4334],[979516800000,5.4334],[979603200000,5.4334],[979689600000,5.4334],[979776000000,5.4333],[979862400000,5.433],[979948800000,5.4327],[980035200000,5.4327],[980121600000,5.4327],[980208000000,5.4325],[980294400000,5.4325],[980380800000,5.4314],[980467200000,5.4314],[980553600000,5.4314],[980640000000,5.4314],[980726400000,5.4314],[980812800000,5.4307],[980899200000,5.4306],[980985600000,5.4305],[981072000000,5.4305],[981158400000,5.4307],[981244800000,null],[981331200000,5.4307],[981417600000,5.4307],[981504000000,5.4306],[981590400000,5.43],[981676800000,5.43],[981763200000,5.4296],[981849600000,5.4296],[981936000000,5.4296],[982022400000,5.4293],[982108800000,5.4293],[982195200000,5.4292],[982281600000,5.429],[982368000000,5.4288],[982454400000,5.4288],[982540800000,5.4288],[982627200000,5.4288],[982713600000,5.4293],[982800000000,5.429],[982886400000,5.4293],[982972800000,5.429],[983059200000,5.429],[983145600000,5.429],[983232000000,5.4288],[983318400000,5.4288],[983404800000,5.4285],[983491200000,5.4285],[983577600000,5.4282],[983664000000,5.4282],[983750400000,5.4282],[983836800000,5.4274],[983923200000,5.4225],[984009600000,5.4225],[984096000000,5.4225],[984182400000,5.4225],[984268800000,5.4225],[984355200000,5.4225],[984441600000,5.42],[984528000000,5.42],[984614400000,5.419],[984700800000,5.419],[984787200000,5.4185],[984873600000,5.4185],[984960000000,5.4185],[985046400000,5.4185],[985132800000,5.4185],[985219200000,5.4183],[985305600000,5.418],[985392000000,5.4189],[985478400000,5.4189],[985564800000,5.4189],[985651200000,5.4185],[985737600000,5.4192],[985824000000,5.4188],[985910400000,5.4192],[985996800000,5.4192],[986083200000,5.4192],[986169600000,5.4192],[986256000000,5.4198],[986342400000,5.4204],[986428800000,5.4204],[986515200000,5.4204],[986601600000,5.4198],[986688000000,5.4198],[986774400000,5.4198],[986860800000,5.4195],[986947200000,5.4191],[987033600000,5.4188],[987120000000,5.4183],[987206400000,5.418],[987292800000,5.418],[987379200000,5.418],[987465600000,5.418],[987552000000,5.419],[987638400000,5.419],[987724800000,5.4177],[987811200000,5.4171],[987897600000,null],[987984000000,5.4171],[988070400000,5.4168],[988156800000,5.4166],[988243200000,5.4163],[988329600000,5.4161],[988416000000,5.4158],[988502400000,5.4158],[988588800000,5.4158],[988675200000,5.4158],[988761600000,5.4158],[988848000000,5.4158],[988934400000,5.4157],[989020800000,5.4156],[989107200000,5.4156],[989193600000,5.4156],[989280000000,5.415],[989366400000,5.4143],[989452800000,5.4143],[989539200000,5.4143],[989625600000,5.4143],[989712000000,5.4135],[989798400000,5.4135],[989884800000,5.413],[989971200000,5.4127],[990057600000,5.4125],[990144000000,5.4123],[990230400000,5.4122],[990316800000,5.4122],[990403200000,5.4122],[990489600000,5.4123],[990576000000,5.4121],[990662400000,5.4121],[990748800000,5.4116],[990835200000,5.4125],[990921600000,5.4125],[991008000000,5.4125],[991094400000,5.4125],[991180800000,5.4158],[991267200000,5.4152],[991353600000,5.4149],[991440000000,5.4147],[991526400000,5.4147],[991612800000,5.4147],[991699200000,5.4147],[991785600000,5.4142],[991872000000,5.4139],[991958400000,5.4141],[992044800000,5.4116],[992131200000,5.4116],[992217600000,5.4116],[992304000000,5.4096],[992390400000,5.4082],[992476800000,5.407],[992563200000,5.4029],[992649600000,5.4029],[992736000000,5.4029],[992822400000,5.4029],[992908800000,5.3998],[992995200000,5.3947],[993081600000,5.3912],[993168000000,5.39],[993254400000,5.3867],[993340800000,5.3867],[993427200000,5.3867],[993513600000,5.3843],[993600000000,5.3816],[993686400000,5.3828],[993772800000,5.3828],[993859200000,5.3828],[993945600000,5.3828],[994032000000,5.3828],[994118400000,5.3828],[994204800000,5.3828],[994291200000,5.3805],[994377600000,5.3853],[994464000000,5.3804],[994550400000,null],[994636800000,null],[994723200000,5.3784],[994809600000,5.3767],[994896000000,5.3747],[994982400000,5.3724],[995068800000,5.3724],[995155200000,5.3724],[995241600000,5.3724],[995328000000,5.3698],[995414400000,5.3698],[995500800000,5.3747],[995587200000,5.37],[995673600000,5.3681],[995760000000,5.3681],[995846400000,5.3681],[995932800000,5.3669],[996019200000,5.3629],[996105600000,5.3599],[996192000000,5.3571],[996278400000,5.3547],[996364800000,5.3547],[996451200000,5.3547],[996537600000,5.3535],[996624000000,5.3535],[996710400000,5.3542],[996796800000,5.3531],[996883200000,5.3516],[996969600000,5.3516],[997056000000,5.3516],[997142400000,5.3505],[997228800000,5.3503],[997315200000,5.3503],[997401600000,null],[997488000000,5.3501],[997574400000,5.3501],[997660800000,5.3501],[997747200000,5.3501],[997833600000,5.3501],[997920000000,5.3496],[998006400000,5.348],[998092800000,5.3468],[998179200000,5.3468],[998265600000,5.3468],[998352000000,5.3449],[998438400000,5.3436],[998524800000,5.3399],[998611200000,5.3395],[998697600000,5.3395],[998784000000,5.3395],[998870400000,5.3395],[998956800000,5.338],[999043200000,5.338],[999129600000,5.3385],[999216000000,5.3404],[999302400000,5.3392],[999388800000,5.3392],[999475200000,5.3392],[999561600000,5.3392],[999648000000,5.3408],[999734400000,5.3397],[999820800000,5.3393],[999907200000,5.3397],[999993600000,5.3397],[1000080000000,5.3397],[1000166400000,5.3415],[1000252800000,5.3421],[1000339200000,5.3421],[1000425600000,5.3421],[1000512000000,5.3421],[1000598400000,5.3421],[1000684800000,5.3421],[1000771200000,5.3419],[1000857600000,5.3419],[1000944000000,5.3405],[1001030400000,5.3393],[1001116800000,5.3393],[1001203200000,5.3393],[1001289600000,5.3385],[1001376000000,5.337],[1001462400000,5.3338],[1001548800000,5.3314],[1001635200000,5.3311],[1001721600000,5.3311],[1001808000000,5.3311],[1001894400000,5.3311],[1001980800000,5.332],[1002067200000,5.332],[1002153600000,5.3307],[1002240000000,5.3227],[1002326400000,5.3227],[1002412800000,5.3227],[1002499200000,5.3227],[1002585600000,5.3227],[1002672000000,5.3208],[1002758400000,5.3177],[1002844800000,5.3103],[1002931200000,5.3103],[1003017600000,5.3103],[1003104000000,5.3103],[1003190400000,5.3095],[1003276800000,5.3095],[1003363200000,5.3041],[1003449600000,5.3014],[1003536000000,5.3014],[1003622400000,5.3014],[1003708800000,5.2987],[1003795200000,5.2987],[1003881600000,5.2987],[1003968000000,5.2956],[1004054400000,5.2944],[1004140800000,5.2944],[1004227200000,5.2944],[1004313600000,5.2944],[1004400000000,5.2944],[1004486400000,5.2937],[1004572800000,5.2937],[1004659200000,5.2943],[1004745600000,5.2943],[1004832000000,5.2943],[1004918400000,5.2943],[1005004800000,5.2994],[1005091200000,5.298],[1005177600000,5.2965],[1005264000000,5.2933],[1005350400000,5.2933],[1005436800000,5.2933],[1005523200000,5.2933],[1005609600000,5.2933],[1005696000000,5.2942],[1005782400000,5.2904],[1005868800000,5.286],[1005955200000,5.286],[1006041600000,5.286],[1006128000000,5.286],[1006214400000,5.2831],[1006300800000,5.2803],[1006387200000,5.2752],[1006473600000,5.2768],[1006560000000,5.2768],[1006646400000,5.2768],[1006732800000,5.2768],[1006819200000,5.2726],[1006905600000,5.276],[1006992000000,5.2781],[1007078400000,5.2865],[1007164800000,5.2865],[1007251200000,5.2865],[1007337600000,5.2865],[1007424000000,5.2875],[1007510400000,5.2915],[1007596800000,5.2915],[1007683200000,5.2975],[1007769600000,5.2975],[1007856000000,5.2975],[1007942400000,5.2975],[1008028800000,5.2975],[1008115200000,5.2967],[1008201600000,5.2967],[1008288000000,5.2954],[1008374400000,5.2954],[1008460800000,5.2954],[1008547200000,5.2954],[1008633600000,5.2954],[1008720000000,5.2954],[1008806400000,5.2954],[1008892800000,5.2933],[1008979200000,5.2933],[1009065600000,5.2933],[1009152000000,5.2933],[1009238400000,5.2922],[1009324800000,5.2922],[1009411200000,5.2932],[1009497600000,5.2985],[1009584000000,5.2985],[1009670400000,5.2985]], 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: [[979516800000, 5.433087],[979516800000, 5.433087],[982195200000, 5.429507],[984614400000, 5.421368],[987292800000, 5.418262],[989884800000, 5.413719],[992563200000, 5.401240],[995155200000, 5.370683],[997833600000, 5.346550],[1000512000000, 5.338867],[1003104000000, 5.309797],[1005782400000, 5.287297],[1008374400000, 5.294306]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });