$(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: [[962409600000,5.4378],[962496000000,5.4378],[962582400000,5.4378],[962668800000,5.4382],[962755200000,5.4382],[962841600000,5.4383],[962928000000,5.4385],[963014400000,5.4385],[963100800000,5.4385],[963187200000,5.4385],[963273600000,5.4385],[963360000000,5.4386],[963446400000,5.4387],[963532800000,5.4387],[963619200000,5.4387],[963705600000,5.4387],[963792000000,5.4387],[963878400000,5.4386],[963964800000,5.4386],[964051200000,5.4387],[964137600000,5.4388],[964224000000,5.4389],[964310400000,5.4389],[964396800000,5.4389],[964483200000,5.4389],[964569600000,5.4388],[964656000000,5.4388],[964742400000,5.4388],[964828800000,5.4387],[964915200000,5.4387],[965001600000,5.4387],[965088000000,5.4387],[965174400000,5.4387],[965260800000,5.4386],[965347200000,5.4386],[965433600000,5.4385],[965520000000,5.4385],[965606400000,5.4385],[965692800000,5.4386],[965779200000,5.4385],[965865600000,5.4385],[965952000000,5.4385],[966038400000,5.4385],[966124800000,5.4385],[966211200000,5.4385],[966297600000,5.4385],[966384000000,5.4384],[966470400000,5.4384],[966556800000,5.4384],[966643200000,5.4384],[966729600000,5.4384],[966816000000,5.4384],[966902400000,5.4384],[966988800000,5.4385],[967075200000,5.4383],[967161600000,5.4383],[967248000000,5.4383],[967334400000,5.4383],[967420800000,5.4383],[967507200000,5.4382],[967593600000,5.4385],[967680000000,5.4385],[967766400000,5.4385],[967852800000,5.4385],[967939200000,5.4385],[968025600000,5.4385],[968112000000,5.4385],[968198400000,5.4385],[968284800000,5.439],[968371200000,5.439],[968457600000,5.439],[968544000000,5.439],[968630400000,5.439],[968716800000,5.439],[968803200000,5.439],[968889600000,5.439],[968976000000,5.4385],[969062400000,5.439],[969148800000,5.439],[969235200000,5.439],[969321600000,5.439],[969408000000,5.439],[969494400000,5.439],[969580800000,5.439],[969667200000,5.4392],[969753600000,5.4392],[969840000000,5.4392],[969926400000,5.4394],[970012800000,5.4397],[970099200000,5.4397],[970185600000,5.4397],[970272000000,5.4397],[970358400000,5.4397],[970444800000,5.4397],[970531200000,5.44],[970617600000,5.44],[970704000000,5.44],[970790400000,5.44],[970876800000,5.44],[970963200000,5.44],[971049600000,5.44],[971136000000,5.44],[971222400000,5.44],[971308800000,5.44],[971395200000,5.44],[971481600000,5.439],[971568000000,5.439],[971654400000,5.439],[971740800000,5.439],[971827200000,5.4386],[971913600000,5.4383],[972000000000,5.4379],[972086400000,5.4376],[972172800000,5.4376],[972259200000,5.4376],[972345600000,5.4373],[972432000000,5.4373],[972518400000,5.4373],[972604800000,5.4371],[972691200000,5.4371],[972777600000,5.4371],[972864000000,5.4371],[972950400000,5.4369],[973036800000,5.4369],[973123200000,5.4369],[973209600000,5.4371],[973296000000,5.4371],[973382400000,5.4371],[973468800000,5.4371],[973555200000,5.4369],[973641600000,5.4373],[973728000000,5.4373],[973814400000,5.4373],[973900800000,5.4372],[973987200000,5.4372],[974073600000,5.4372],[974160000000,5.4372],[974246400000,5.4375],[974332800000,5.4374],[974419200000,5.4373],[974505600000,5.4372],[974592000000,5.4372],[974678400000,5.4372],[974764800000,5.4371],[974851200000,5.437],[974937600000,5.4369],[975024000000,5.4369],[975110400000,5.437],[975196800000,5.437],[975283200000,5.437],[975369600000,5.4369],[975456000000,5.4367],[975542400000,5.4367],[975628800000,5.4366],[975715200000,5.4366],[975801600000,5.4366],[975888000000,5.4366],[975974400000,5.4367],[976060800000,5.4366],[976147200000,5.4364],[976233600000,5.4363],[976320000000,5.4362],[976406400000,5.4362],[976492800000,5.4362],[976579200000,5.4363],[976665600000,5.4365],[976752000000,5.4365],[976838400000,5.4363],[976924800000,5.436],[977011200000,5.436],[977097600000,5.436],[977184000000,5.4357],[977270400000,5.4357],[977356800000,5.4355],[977443200000,5.4355],[977529600000,5.4351],[977616000000,5.4351],[977702400000,5.4351],[977788800000,5.4351],[977875200000,5.435],[977961600000,5.435],[978048000000,5.4345],[978134400000,5.4345]], 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: [[963619200000, 5.438565],[963619200000, 5.438565],[966297600000, 5.438458],[968976000000, 5.439010],[971568000000, 5.438716],[974246400000, 5.437093],[976838400000, 5.435835]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });