$(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: [[965088000000,8.1356],[965174400000,8.16334],[965260800000,8.09371],[965347200000,8.08891],[965433600000,8.17495],[965520000000,8.17495],[965606400000,8.17495],[965692800000,8.19036],[965779200000,8.20582],[965865600000,8.16321],[965952000000,8.16136],[966038400000,8.19409],[966124800000,8.19409],[966211200000,8.19409],[966297600000,8.18956],[966384000000,8.18408],[966470400000,8.15221],[966556800000,8.15403],[966643200000,8.13843],[966729600000,8.13843],[966816000000,8.13843],[966902400000,8.13843],[966988800000,8.08119],[967075200000,8.04692],[967161600000,8.04692],[967248000000,8.04692],[967334400000,8.04692],[967420800000,8.04692],[967507200000,8.00357],[967593600000,7.94204],[967680000000,7.88087]], 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: [[965088000000, 8.135600],[965088000000, 8.135600],[965174400000, 8.163340],[965260800000, 8.093710],[965347200000, 8.088910],[965433600000, 8.174950],[965520000000, 8.174950],[965606400000, 8.174950],[965692800000, 8.190360],[965779200000, 8.205820],[965865600000, 8.163210],[965952000000, 8.161360],[966038400000, 8.194090],[966124800000, 8.194090],[966211200000, 8.194090],[966297600000, 8.189560],[966384000000, 8.184080],[966470400000, 8.152210],[966556800000, 8.154030],[966643200000, 8.138430],[966729600000, 8.138430],[966816000000, 8.138430],[966902400000, 8.138430],[966988800000, 8.081190],[967075200000, 8.046920],[967161600000, 8.046920],[967248000000, 8.046920],[967334400000, 8.046920],[967420800000, 8.046920],[967507200000, 8.003570],[967593600000, 7.942040],[967680000000, 7.880870]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });