$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1041379200000,0.16777],[1041465600000,0.16777],[1041552000000,0.16777],[1041638400000,0.16777],[1041724800000,0.16777],[1041811200000,0.16777],[1041897600000,0.16777],[1041984000000,0.16724],[1042070400000,0.16726],[1042156800000,0.16752],[1042243200000,0.16752],[1042329600000,0.16752],[1042416000000,0.16756],[1042502400000,0.16756],[1042588800000,0.16763],[1042675200000,0.16766],[1042761600000,0.16758],[1042848000000,0.16758],[1042934400000,0.16758],[1043020800000,0.16758],[1043107200000,0.16758],[1043193600000,0.1677],[1043280000000,0.16765],[1043366400000,0.16769],[1043452800000,0.16769],[1043539200000,0.16769],[1043625600000,0.16769],[1043712000000,0.1677],[1043798400000,0.1677],[1043884800000,0.1677],[1043971200000,0.16752],[1044057600000,0.16752],[1044144000000,0.16752],[1044230400000,0.16752],[1044316800000,0.16743],[1044403200000,0.16752],[1044489600000,0.16752],[1044576000000,0.16753],[1044662400000,0.16753],[1044748800000,0.16753],[1044835200000,0.16753],[1044921600000,0.16761],[1045008000000,0.16781],[1045094400000,0.16851],[1045180800000,0.16859],[1045267200000,0.16859],[1045353600000,0.16859],[1045440000000,0.16859],[1045526400000,0.16908],[1045612800000,0.16891],[1045699200000,0.16891],[1045785600000,0.16907],[1045872000000,0.16907],[1045958400000,0.16907],[1046044800000,0.16907],[1046131200000,0.16888],[1046217600000,0.16888],[1046304000000,0.16878],[1046390400000,0.16896],[1046476800000,0.16896],[1046563200000,0.16896],[1046649600000,0.16896],[1046736000000,0.16884],[1046822400000,0.16886],[1046908800000,0.16886],[1046995200000,0.16902],[1047081600000,0.16902],[1047168000000,0.16902],[1047254400000,0.16902],[1047340800000,0.16931],[1047427200000,0.16931],[1047513600000,0.16967],[1047600000000,0.16999],[1047686400000,0.16999],[1047772800000,0.16999],[1047859200000,0.16996],[1047945600000,0.16996],[1048032000000,0.1699],[1048118400000,0.1699],[1048204800000,0.16999],[1048291200000,0.16999],[1048377600000,0.16999],[1048464000000,0.17],[1048550400000,0.17],[1048636800000,0.16998],[1048723200000,0.17],[1048809600000,0.17],[1048896000000,0.17],[1048982400000,0.17],[1049068800000,0.16999],[1049155200000,0.17],[1049241600000,0.17034],[1049328000000,0.17048],[1049414400000,0.17053],[1049500800000,0.17053],[1049587200000,0.17053],[1049673600000,0.17053],[1049760000000,0.17052],[1049846400000,0.17051],[1049932800000,0.17051],[1050019200000,0.1705],[1050105600000,0.1705],[1050192000000,0.1705],[1050278400000,0.17077],[1050364800000,0.17102],[1050451200000,0.17102],[1050537600000,0.17101],[1050624000000,0.17101],[1050710400000,0.17101],[1050796800000,0.17101],[1050883200000,0.17101],[1050969600000,0.17149],[1051056000000,0.17149],[1051142400000,0.1715],[1051228800000,0.1715],[1051315200000,0.1715],[1051401600000,0.1715],[1051488000000,0.1715],[1051574400000,0.1715],[1051660800000,0.17149],[1051747200000,0.17149],[1051833600000,0.17149],[1051920000000,0.17149],[1052006400000,0.17149],[1052092800000,0.17149],[1052179200000,0.17144],[1052265600000,0.17139],[1052352000000,0.17149],[1052438400000,0.17149],[1052524800000,0.17149],[1052611200000,0.17149],[1052697600000,0.17149],[1052784000000,0.172],[1052870400000,0.17215],[1052956800000,0.17214],[1053043200000,0.17265],[1053129600000,0.17265],[1053216000000,0.17265],[1053302400000,0.17265],[1053388800000,0.17265],[1053475200000,0.17265],[1053561600000,0.17297],[1053648000000,0.17297],[1053734400000,0.17297],[1053820800000,0.17297],[1053907200000,null],[1053993600000,0.1736],[1054080000000,0.1736],[1054166400000,0.17389],[1054252800000,0.17366],[1054339200000,0.17366],[1054425600000,0.17366],[1054512000000,0.17366],[1054598400000,0.17405],[1054684800000,0.17347],[1054771200000,0.17338],[1054857600000,0.17448],[1054944000000,0.17448],[1055030400000,0.17448],[1055116800000,0.17448],[1055203200000,0.17448],[1055289600000,0.17452],[1055376000000,0.17478],[1055462400000,0.17478],[1055548800000,0.17478],[1055635200000,0.17478],[1055721600000,0.17478],[1055808000000,0.17478],[1055894400000,0.17554],[1055980800000,0.17554],[1056067200000,0.17554],[1056153600000,0.17554],[1056240000000,0.17554],[1056326400000,0.17554],[1056412800000,0.17569],[1056499200000,0.17571],[1056585600000,0.17577],[1056672000000,0.17577],[1056758400000,0.17577],[1056844800000,0.17577],[1056931200000,0.17577],[1057017600000,0.17572],[1057104000000,0.17612],[1057190400000,0.17611],[1057276800000,0.17604],[1057363200000,0.17604],[1057449600000,0.17604],[1057536000000,0.17598],[1057622400000,0.17565],[1057708800000,0.17565],[1057795200000,0.17561],[1057881600000,0.17551],[1057968000000,0.17551],[1058054400000,0.17551],[1058140800000,0.17485],[1058227200000,0.17462],[1058313600000,0.17462],[1058400000000,0.17488],[1058486400000,0.17521],[1058572800000,0.17521],[1058659200000,0.17521],[1058745600000,0.17559],[1058832000000,0.17598],[1058918400000,0.1757],[1059004800000,0.17564],[1059091200000,0.17584],[1059177600000,0.17584],[1059264000000,0.17584],[1059350400000,0.17628],[1059436800000,0.17629],[1059523200000,0.17629],[1059609600000,0.1762],[1059696000000,0.17595],[1059782400000,0.17595],[1059868800000,0.17595],[1059955200000,0.17578],[1060041600000,0.17578],[1060128000000,0.17608],[1060214400000,0.17598],[1060300800000,0.17576],[1060387200000,0.1754],[1060473600000,0.1754],[1060560000000,0.17552],[1060646400000,0.17566],[1060732800000,0.17548],[1060819200000,0.17548],[1060905600000,0.17566],[1060992000000,0.17566],[1061078400000,0.17566],[1061164800000,0.17582],[1061251200000,0.17582],[1061337600000,0.17581],[1061424000000,0.17582],[1061510400000,0.1759],[1061596800000,0.1759],[1061683200000,0.1759],[1061769600000,0.1759],[1061856000000,0.1756],[1061942400000,0.17543],[1062028800000,0.17478],[1062115200000,0.17478],[1062201600000,0.17478],[1062288000000,0.17478],[1062374400000,0.17478],[1062460800000,0.17449],[1062547200000,0.17421],[1062633600000,0.17401],[1062720000000,0.17375],[1062806400000,0.17375],[1062892800000,0.17375],[1062979200000,0.17366],[1063065600000,0.174],[1063152000000,0.17406],[1063238400000,0.17391],[1063324800000,0.1739],[1063411200000,0.1739],[1063497600000,0.1739],[1063584000000,0.17366],[1063670400000,0.17366],[1063756800000,0.17378],[1063843200000,0.17378],[1063929600000,0.17447],[1064016000000,0.17447],[1064102400000,0.17447],[1064188800000,0.17486],[1064275200000,0.17486],[1064361600000,null],[1064448000000,null],[1064534400000,null],[1064620800000,null],[1064707200000,null],[1064793600000,0.17481],[1064880000000,0.17416],[1064966400000,0.17416],[1065052800000,0.17441],[1065139200000,0.17516],[1065225600000,0.17516],[1065312000000,0.17516],[1065398400000,0.17503],[1065484800000,0.17548],[1065571200000,0.17548],[1065657600000,0.17634],[1065744000000,0.17634],[1065830400000,0.17634],[1065916800000,0.17634],[1066003200000,0.17634],[1066089600000,0.17738],[1066176000000,0.17634],[1066262400000,0.17699],[1066348800000,0.17729],[1066435200000,0.17729],[1066521600000,0.17729],[1066608000000,0.17729],[1066694400000,0.17762],[1066780800000,0.17814],[1066867200000,0.1782],[1066953600000,0.17823],[1067040000000,0.17823],[1067126400000,0.17823],[1067212800000,0.17823],[1067299200000,0.17723],[1067385600000,0.17812],[1067472000000,0.17881],[1067558400000,0.17857],[1067644800000,0.17805],[1067731200000,0.17805],[1067817600000,0.17805],[1067904000000,0.17806],[1067990400000,0.17856],[1068076800000,0.17886],[1068163200000,0.17886],[1068249600000,0.17886],[1068336000000,0.17886],[1068422400000,0.17886],[1068508800000,0.17886],[1068595200000,0.1789],[1068681600000,0.17886],[1068768000000,0.17857],[1068854400000,0.17881],[1068940800000,0.17881],[1069027200000,0.17881],[1069113600000,0.17894],[1069200000000,0.17892],[1069286400000,0.17895],[1069372800000,0.17894],[1069459200000,0.17894],[1069545600000,0.17894],[1069632000000,0.17894],[1069718400000,0.17931],[1069804800000,0.17931],[1069891200000,0.17931],[1069977600000,0.17929],[1070064000000,0.17929],[1070150400000,0.17929],[1070236800000,0.17929],[1070323200000,0.17951],[1070409600000,0.17953],[1070496000000,0.17956],[1070582400000,0.17994],[1070668800000,0.17994],[1070755200000,0.17994],[1070841600000,0.17994],[1070928000000,0.18044],[1071014400000,0.18042],[1071100800000,0.18051],[1071187200000,0.18111],[1071273600000,0.18111],[1071360000000,0.18111],[1071446400000,0.18111],[1071532800000,0.18144],[1071619200000,0.18227],[1071705600000,0.18227],[1071792000000,0.18231],[1071878400000,0.18231],[1071964800000,0.18231],[1072051200000,0.18231],[1072137600000,0.18214],[1072224000000,0.18231],[1072310400000,0.1823],[1072396800000,0.18225],[1072483200000,0.18225],[1072569600000,0.18225],[1072656000000,0.18225],[1072742400000,0.18101]], 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: [[1042588800000, 0.167629],[1042588800000, 0.167629],[1045267200000, 0.168290],[1047686400000, 0.169595],[1050364800000, 0.170910],[1052956800000, 0.172340],[1055635200000, 0.174910],[1058227200000, 0.175664],[1060905600000, 0.175618],[1063584000000, 0.174122],[1066176000000, 0.176814],[1068854400000, 0.178835],[1071446400000, 0.181176]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });