$(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: [[1009843200000,5.2985],[1009929600000,5.2985],[1010016000000,5.2985],[1010102400000,5.303],[1010188800000,5.303],[1010275200000,5.303],[1010361600000,5.303],[1010448000000,5.303],[1010534400000,5.3109],[1010620800000,5.3114],[1010707200000,5.3113],[1010793600000,5.3113],[1010880000000,5.3113],[1010966400000,5.3113],[1011052800000,5.3121],[1011139200000,5.313],[1011225600000,5.3135],[1011312000000,5.318],[1011398400000,5.318],[1011484800000,5.318],[1011571200000,5.318],[1011657600000,5.318],[1011744000000,5.321],[1011830400000,5.321],[1011916800000,5.3206],[1012003200000,5.3206],[1012089600000,5.3206],[1012176000000,5.3206],[1012262400000,5.3206],[1012348800000,5.321],[1012435200000,5.321],[1012521600000,5.321],[1012608000000,5.321],[1012694400000,5.321],[1012780800000,5.321],[1012867200000,5.3208],[1012953600000,5.3208],[1013040000000,5.3206],[1013126400000,5.3206],[1013212800000,5.3206],[1013299200000,5.3206],[1013385600000,5.3206],[1013472000000,5.3206],[1013558400000,5.3206],[1013644800000,5.3206],[1013731200000,5.3206],[1013817600000,null],[1013904000000,null],[1013990400000,null],[1014076800000,null],[1014163200000,5.3216],[1014249600000,5.3216],[1014336000000,5.3216],[1014422400000,5.3216],[1014508800000,5.3216],[1014595200000,5.3216],[1014681600000,5.322],[1014768000000,5.3218],[1014854400000,5.3218],[1014940800000,5.3221],[1015027200000,5.3221],[1015113600000,5.3221],[1015200000000,5.3221],[1015286400000,5.3239],[1015372800000,5.3235],[1015459200000,5.3228],[1015545600000,5.3228],[1015632000000,5.3228],[1015718400000,5.3228],[1015804800000,5.3224],[1015891200000,5.3224],[1015977600000,5.3219],[1016064000000,5.3219],[1016150400000,5.3219],[1016236800000,5.3219],[1016323200000,5.3219],[1016409600000,5.3219],[1016496000000,5.3219],[1016582400000,5.3219],[1016668800000,5.3224],[1016755200000,5.3224],[1016841600000,5.3224],[1016928000000,5.3224],[1017014400000,5.3224],[1017100800000,5.3222],[1017187200000,5.3225],[1017273600000,5.3221],[1017360000000,5.322],[1017446400000,5.322],[1017532800000,5.322],[1017619200000,5.322],[1017705600000,5.3229],[1017792000000,5.3247],[1017878400000,5.3276],[1017964800000,5.3276],[1018051200000,5.3276],[1018137600000,5.3276],[1018224000000,5.3286],[1018310400000,5.3286],[1018396800000,5.3286],[1018483200000,5.3286],[1018569600000,5.3283],[1018656000000,5.3283],[1018742400000,5.3283],[1018828800000,5.3281],[1018915200000,5.3281],[1019001600000,5.328],[1019088000000,5.3279],[1019174400000,5.328],[1019260800000,5.328],[1019347200000,5.328],[1019433600000,5.3278],[1019520000000,5.3278],[1019606400000,5.3278],[1019692800000,5.3274],[1019779200000,5.3274],[1019865600000,5.3274],[1019952000000,5.3274],[1020038400000,5.3274],[1020124800000,5.327],[1020211200000,5.327],[1020297600000,5.327],[1020384000000,5.327],[1020470400000,5.327],[1020556800000,5.327],[1020643200000,5.327],[1020729600000,5.327],[1020816000000,5.327],[1020902400000,5.327],[1020988800000,5.327],[1021075200000,5.327],[1021161600000,5.327],[1021248000000,5.327],[1021334400000,5.327],[1021420800000,5.327],[1021507200000,5.328],[1021593600000,5.3285],[1021680000000,5.3285],[1021766400000,5.3285],[1021852800000,5.3285],[1021939200000,5.3285],[1022025600000,5.3285],[1022112000000,5.3288],[1022198400000,5.3288],[1022284800000,5.3288],[1022371200000,5.3288],[1022457600000,5.3288],[1022544000000,5.3288],[1022630400000,5.3295],[1022716800000,5.3295],[1022803200000,5.3296],[1022889600000,5.3296],[1022976000000,5.3296],[1023062400000,5.3296],[1023148800000,5.3296],[1023235200000,5.3296],[1023321600000,5.3299],[1023408000000,5.3295],[1023494400000,5.3295],[1023580800000,5.3295],[1023667200000,5.3295],[1023753600000,5.3295],[1023840000000,5.3295],[1023926400000,5.3295],[1024012800000,5.3295],[1024099200000,5.3295],[1024185600000,5.3295],[1024272000000,5.3295],[1024358400000,5.329],[1024444800000,5.329],[1024531200000,5.329],[1024617600000,5.3288],[1024704000000,5.3288],[1024790400000,5.3288],[1024876800000,5.3288],[1024963200000,5.3288],[1025049600000,5.3288],[1025136000000,5.3288],[1025222400000,5.3288],[1025308800000,5.3288],[1025395200000,5.3288],[1025481600000,5.3288],[1025568000000,5.3288],[1025654400000,5.3288],[1025740800000,5.3288],[1025827200000,5.3288],[1025913600000,5.3288],[1026000000000,5.3288],[1026086400000,5.3288],[1026172800000,5.3288],[1026259200000,5.3288],[1026345600000,5.3288],[1026432000000,5.3288],[1026518400000,5.3288],[1026604800000,5.3288],[1026691200000,5.3288],[1026777600000,5.3288],[1026864000000,5.3288],[1026950400000,5.3288],[1027036800000,5.3288],[1027123200000,5.3288],[1027209600000,5.3288],[1027296000000,5.3288],[1027382400000,5.3288],[1027468800000,5.3288],[1027555200000,5.3288],[1027641600000,5.3288],[1027728000000,5.3288],[1027814400000,5.3288],[1027900800000,5.329],[1027987200000,5.329],[1028073600000,5.329],[1028160000000,5.329],[1028246400000,5.329],[1028332800000,5.329],[1028419200000,5.329],[1028505600000,5.3291],[1028592000000,5.329],[1028678400000,5.329],[1028764800000,5.329],[1028851200000,5.329],[1028937600000,5.329],[1029024000000,5.329],[1029110400000,5.329],[1029196800000,5.329],[1029283200000,5.329],[1029369600000,5.329],[1029456000000,5.329],[1029542400000,5.329],[1029628800000,5.329],[1029715200000,5.329],[1029801600000,5.329],[1029888000000,5.3292],[1029974400000,5.3292],[1030060800000,5.3295],[1030147200000,5.3295],[1030233600000,5.3295],[1030320000000,5.3295],[1030406400000,5.3295],[1030492800000,5.329],[1030579200000,5.329],[1030665600000,5.3293],[1030752000000,5.3293],[1030838400000,5.3293],[1030924800000,5.3293],[1031011200000,5.3293],[1031097600000,5.3293],[1031184000000,5.3293],[1031270400000,5.3293],[1031356800000,5.3293],[1031443200000,5.3293],[1031529600000,5.329],[1031616000000,5.3294],[1031702400000,5.3294],[1031788800000,5.3297],[1031875200000,5.3297],[1031961600000,5.3297],[1032048000000,5.3297],[1032134400000,5.3297],[1032220800000,5.3298],[1032307200000,5.3295],[1032393600000,5.3295],[1032480000000,5.3295],[1032566400000,5.3295],[1032652800000,5.3295],[1032739200000,5.3295],[1032825600000,5.3295],[1032912000000,5.3295],[1032998400000,5.3295],[1033084800000,5.3295],[1033171200000,5.3295],[1033257600000,5.3295],[1033344000000,5.3295],[1033430400000,5.3295],[1033516800000,5.3295],[1033603200000,5.3295],[1033689600000,5.3295],[1033776000000,5.3295],[1033862400000,5.3295],[1033948800000,5.3295],[1034035200000,5.3295],[1034121600000,5.3295],[1034208000000,5.3295],[1034294400000,5.3295],[1034380800000,5.3295],[1034467200000,5.3295],[1034553600000,5.3295],[1034640000000,5.3295],[1034726400000,5.3295],[1034812800000,5.3295],[1034899200000,5.3295],[1034985600000,5.3295],[1035072000000,5.3295],[1035158400000,5.3295],[1035244800000,5.3295],[1035331200000,5.3297],[1035417600000,5.3298],[1035504000000,5.3298],[1035590400000,5.3298],[1035676800000,5.3298],[1035763200000,5.3302],[1035849600000,5.3302],[1035936000000,5.3302],[1036022400000,5.3302],[1036108800000,5.3304],[1036195200000,5.3304],[1036281600000,5.3304],[1036368000000,5.3304],[1036454400000,5.3304],[1036540800000,5.3304],[1036627200000,5.3304],[1036713600000,5.3304],[1036800000000,5.3304],[1036886400000,5.3304],[1036972800000,5.3304],[1037059200000,5.3304],[1037145600000,5.3304],[1037232000000,5.3304],[1037318400000,5.3304],[1037404800000,5.3304],[1037491200000,5.3304],[1037577600000,5.3304],[1037664000000,5.3304],[1037750400000,5.3304],[1037836800000,5.3304],[1037923200000,5.3304],[1038009600000,5.3304],[1038096000000,5.3304],[1038182400000,5.3304],[1038268800000,5.3304],[1038355200000,5.3304],[1038441600000,5.3304],[1038528000000,5.3312],[1038614400000,5.3312],[1038700800000,null],[1038787200000,null],[1038873600000,null],[1038960000000,null],[1039046400000,5.3315],[1039132800000,5.3315],[1039219200000,5.3315],[1039305600000,5.3315],[1039392000000,5.3315],[1039478400000,5.3315],[1039564800000,5.3315],[1039651200000,5.3315],[1039737600000,5.3315],[1039824000000,5.3315],[1039910400000,5.3315],[1039996800000,5.3315],[1040083200000,5.3315],[1040169600000,5.3315],[1040256000000,5.3315],[1040342400000,5.3315],[1040428800000,5.3315],[1040515200000,5.3315],[1040601600000,5.3315],[1040688000000,5.3315],[1040774400000,5.3315],[1040860800000,5.3315],[1040947200000,5.3324],[1041033600000,5.3324],[1041120000000,5.3324],[1041206400000,5.3324]], 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, 5.312697],[1011052800000, 5.312697],[1013731200000, 5.321092],[1016150400000, 5.322316],[1018828800000, 5.327427],[1021420800000, 5.327916],[1024099200000, 5.329247],[1026691200000, 5.328819],[1029369600000, 5.329116],[1032048000000, 5.329467],[1034640000000, 5.329635],[1037318400000, 5.330453],[1039910400000, 5.331667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });