$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1009843200000,7.6739],[1009929600000,7.6739],[1010016000000,7.64737],[1010102400000,7.63762],[1010188800000,7.63762],[1010275200000,7.63762],[1010361600000,7.63762],[1010448000000,7.63762],[1010534400000,7.65364],[1010620800000,7.65786],[1010707200000,7.66653],[1010793600000,7.66653],[1010880000000,7.66653],[1010966400000,7.66653],[1011052800000,7.70198],[1011139200000,7.68898],[1011225600000,7.63637],[1011312000000,7.62931],[1011398400000,7.62931],[1011484800000,7.62931],[1011571200000,7.62931],[1011657600000,7.63663],[1011744000000,7.59774],[1011830400000,7.59677],[1011916800000,7.52405],[1012003200000,7.52405],[1012089600000,7.52405],[1012176000000,7.52405],[1012262400000,7.48689],[1012348800000,7.52604],[1012435200000,7.52045],[1012521600000,7.52965],[1012608000000,7.52965],[1012694400000,7.52965],[1012780800000,7.52965],[1012867200000,7.55527],[1012953600000,7.55527],[1013040000000,7.52984],[1013126400000,7.52095],[1013212800000,7.52095],[1013299200000,7.52095],[1013385600000,7.52095],[1013472000000,7.576],[1013558400000,7.58983],[1013644800000,7.61294],[1013731200000,7.591],[1013817600000,null],[1013904000000,null],[1013990400000,null],[1014076800000,null],[1014163200000,7.60987],[1014249600000,7.60987],[1014336000000,7.60962],[1014422400000,7.60962],[1014508800000,7.60962],[1014595200000,7.60962],[1014681600000,7.5939],[1014768000000,7.58435],[1014854400000,7.58435],[1014940800000,7.56849],[1015027200000,7.56849],[1015113600000,7.56849],[1015200000000,7.56849],[1015286400000,7.55231],[1015372800000,7.56566],[1015459200000,7.56675],[1015545600000,7.56675],[1015632000000,7.56675],[1015718400000,7.56675],[1015804800000,7.56104],[1015891200000,7.56104],[1015977600000,7.52407],[1016064000000,7.5067],[1016150400000,7.58326],[1016236800000,7.58326],[1016323200000,7.58326],[1016409600000,7.58326],[1016496000000,7.57858],[1016582400000,7.57858],[1016668800000,7.57128],[1016755200000,7.58802],[1016841600000,7.58802],[1016928000000,7.58802],[1017014400000,7.58802],[1017100800000,7.59856],[1017187200000,7.57619],[1017273600000,7.57422],[1017360000000,7.57408],[1017446400000,7.57408],[1017532800000,7.57408],[1017619200000,7.57408],[1017705600000,7.57536],[1017792000000,7.65801],[1017878400000,7.66196],[1017964800000,7.64217],[1018051200000,7.64217],[1018137600000,7.64217],[1018224000000,7.64538],[1018310400000,7.62609],[1018396800000,7.62609],[1018483200000,7.65655],[1018569600000,7.65796],[1018656000000,7.65796],[1018742400000,7.65796],[1018828800000,7.65806],[1018915200000,7.65806],[1019001600000,7.65628],[1019088000000,7.69547],[1019174400000,7.70583],[1019260800000,7.70583],[1019347200000,7.70583],[1019433600000,7.7096],[1019520000000,7.7096],[1019606400000,7.70845],[1019692800000,7.73413],[1019779200000,7.73711],[1019865600000,7.73711],[1019952000000,7.73711],[1020038400000,7.73711],[1020124800000,7.75462],[1020211200000,7.75462],[1020297600000,7.75462],[1020384000000,7.75462],[1020470400000,7.75462],[1020556800000,7.75462],[1020643200000,7.75462],[1020729600000,7.75462],[1020816000000,7.77449],[1020902400000,7.77449],[1020988800000,7.78516],[1021075200000,7.78516],[1021161600000,7.78516],[1021248000000,7.77892],[1021334400000,7.7361],[1021420800000,7.7361],[1021507200000,7.7743],[1021593600000,7.76659],[1021680000000,7.76659],[1021766400000,7.76659],[1021852800000,7.76659],[1021939200000,7.78052],[1022025600000,7.76641],[1022112000000,7.78307],[1022198400000,7.73842],[1022284800000,7.73842],[1022371200000,7.73842],[1022457600000,7.73842],[1022544000000,7.75113],[1022630400000,7.79396],[1022716800000,7.79396],[1022803200000,7.81092],[1022889600000,7.81092],[1022976000000,7.81092],[1023062400000,7.81092],[1023148800000,7.75298],[1023235200000,7.79609],[1023321600000,7.77049],[1023408000000,7.79187],[1023494400000,7.79187],[1023580800000,7.79187],[1023667200000,7.788],[1023753600000,7.788],[1023840000000,7.80527],[1023926400000,7.83696],[1024012800000,7.86807],[1024099200000,7.86807],[1024185600000,7.86807],[1024272000000,7.86807],[1024358400000,7.90556],[1024444800000,7.90556],[1024531200000,7.95109],[1024617600000,7.96839],[1024704000000,7.96839],[1024790400000,7.96839],[1024876800000,7.96839],[1024963200000,8.00639],[1025049600000,8.00639],[1025136000000,8.10373],[1025222400000,8.10373],[1025308800000,8.10373],[1025395200000,8.10373],[1025481600000,8.10373],[1025568000000,8.15061],[1025654400000,8.15061],[1025740800000,8.13361],[1025827200000,8.08212],[1025913600000,8.08212],[1026000000000,8.08212],[1026086400000,8.15501],[1026172800000,8.2358],[1026259200000,8.24648],[1026345600000,8.24648],[1026432000000,8.24369],[1026518400000,8.24369],[1026604800000,8.24369],[1026691200000,8.32931],[1026777600000,8.32931],[1026864000000,8.33785],[1026950400000,8.33806],[1027036800000,8.33806],[1027123200000,8.33806],[1027209600000,8.4084],[1027296000000,8.38345],[1027382400000,8.34388],[1027468800000,8.34545],[1027555200000,8.39035],[1027641600000,8.41575],[1027728000000,8.41575],[1027814400000,8.41575],[1027900800000,8.32714],[1027987200000,8.32709],[1028073600000,8.32672],[1028160000000,8.28993],[1028246400000,8.35794],[1028332800000,8.35794],[1028419200000,8.35794],[1028505600000,8.32413],[1028592000000,8.22307],[1028678400000,8.22307],[1028764800000,8.18898],[1028851200000,8.15828],[1028937600000,8.15828],[1029024000000,8.15828],[1029110400000,8.16123],[1029196800000,8.16123],[1029283200000,8.21519],[1029369600000,8.16512],[1029456000000,8.17702],[1029542400000,8.17702],[1029628800000,8.17702],[1029715200000,8.18478],[1029801600000,8.18478],[1029888000000,8.12108],[1029974400000,8.12108],[1030060800000,8.09526],[1030147200000,8.09526],[1030233600000,8.09526],[1030320000000,8.09526],[1030406400000,8.09526],[1030492800000,8.18936],[1030579200000,8.18936],[1030665600000,8.24984],[1030752000000,8.24984],[1030838400000,8.24984],[1030924800000,8.25147],[1031011200000,8.30007],[1031097600000,8.34286],[1031184000000,8.36635],[1031270400000,8.35602],[1031356800000,8.35602],[1031443200000,8.35602],[1031529600000,8.30161],[1031616000000,8.28132],[1031702400000,8.29443],[1031788800000,8.28847],[1031875200000,8.31759],[1031961600000,8.31759],[1032048000000,8.31759],[1032134400000,8.31759],[1032220800000,8.21791],[1032307200000,8.20605],[1032393600000,8.28377],[1032480000000,8.23872],[1032566400000,8.23872],[1032652800000,8.23872],[1032739200000,8.29155],[1032825600000,8.29953],[1032912000000,8.30403],[1032998400000,8.32129],[1033084800000,8.29627],[1033171200000,8.29627],[1033257600000,8.29627],[1033344000000,8.29627],[1033430400000,8.3725],[1033516800000,8.3725],[1033603200000,8.37178],[1033689600000,8.35859],[1033776000000,8.35859],[1033862400000,8.35859],[1033948800000,8.34345],[1034035200000,8.33532],[1034121600000,8.33532],[1034208000000,8.3313],[1034294400000,8.31085],[1034380800000,8.31085],[1034467200000,8.31085],[1034553600000,8.32302],[1034640000000,8.28564],[1034726400000,8.28612],[1034812800000,8.30319],[1034899200000,8.25763],[1034985600000,8.25763],[1035072000000,8.25763],[1035158400000,8.24634],[1035244800000,8.24364],[1035331200000,8.25247],[1035417600000,8.24489],[1035504000000,8.27789],[1035590400000,8.27789],[1035676800000,8.27789],[1035763200000,8.2462],[1035849600000,8.2462],[1035936000000,8.2902],[1036022400000,8.2902],[1036108800000,8.34884],[1036195200000,8.34884],[1036281600000,8.34884],[1036368000000,8.34884],[1036454400000,8.29507],[1036540800000,8.33181],[1036627200000,8.36048],[1036713600000,8.45088],[1036800000000,8.45088],[1036886400000,8.45088],[1036972800000,8.47341],[1037059200000,8.45168],[1037145600000,8.46074],[1037232000000,8.46741],[1037318400000,8.40279],[1037404800000,8.40279],[1037491200000,8.40279],[1037577600000,8.41708],[1037664000000,8.46859],[1037750400000,8.39178],[1037836800000,8.41492],[1037923200000,8.4344],[1038009600000,8.4344],[1038096000000,8.4344],[1038182400000,8.34613],[1038268800000,8.34613],[1038355200000,8.25119],[1038441600000,8.25119],[1038528000000,8.27566],[1038614400000,8.27566],[1038700800000,null],[1038787200000,null],[1038873600000,null],[1038960000000,null],[1039046400000,8.37005],[1039132800000,8.36553],[1039219200000,8.36553],[1039305600000,8.36553],[1039392000000,8.41715],[1039478400000,8.41715],[1039564800000,8.37843],[1039651200000,8.41179],[1039737600000,8.45512],[1039824000000,8.45512],[1039910400000,8.45512],[1039996800000,8.47266],[1040083200000,8.52626],[1040169600000,8.52626],[1040256000000,8.55388],[1040342400000,8.54423],[1040428800000,8.54423],[1040515200000,8.54423],[1040601600000,8.54423],[1040688000000,8.50426],[1040774400000,8.48819],[1040860800000,8.48819],[1040947200000,8.53842],[1041033600000,8.53842],[1041120000000,8.53842],[1041206400000,8.53842]], 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: [[1011052800000, 7.618264],[1011052800000, 7.618264],[1013731200000, 7.568057],[1016150400000, 7.570856],[1018828800000, 7.675804],[1021420800000, 7.764911],[1024099200000, 7.896064],[1026691200000, 8.274521],[1029369600000, 8.193487],[1032048000000, 8.294674],[1034640000000, 8.301134],[1037318400000, 8.384617],[1039910400000, 8.477231]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });