$(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: [[1072915200000,9.55404],[1073001600000,9.55404],[1073088000000,9.55404],[1073174400000,9.55404],[1073260800000,9.55404],[1073347200000,9.71793],[1073433600000,9.71793],[1073520000000,9.71793],[1073606400000,9.77873],[1073692800000,9.77873],[1073779200000,9.77873],[1073865600000,9.77873],[1073952000000,9.87562],[1074038400000,9.85464],[1074124800000,9.80419],[1074211200000,9.73969],[1074297600000,9.67482],[1074384000000,9.67482],[1074470400000,9.67482],[1074556800000,9.52103],[1074643200000,9.66739],[1074729600000,9.74046],[1074816000000,9.81894],[1074902400000,9.81894],[1074988800000,9.81894],[1075075200000,9.81894],[1075161600000,9.73266],[1075248000000,9.65903],[1075334400000,9.75098],[1075420800000,9.70338],[1075507200000,9.64364]], 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: [[1072915200000, 9.554040],[1072915200000, 9.554040],[1073001600000, 9.554040],[1073088000000, 9.554040],[1073174400000, 9.554040],[1073260800000, 9.554040],[1073347200000, 9.717930],[1073433600000, 9.717930],[1073520000000, 9.717930],[1073606400000, 9.778730],[1073692800000, 9.778730],[1073779200000, 9.778730],[1073865600000, 9.778730],[1073952000000, 9.875620],[1074038400000, 9.854640],[1074124800000, 9.804190],[1074211200000, 9.739690],[1074297600000, 9.674820],[1074384000000, 9.674820],[1074470400000, 9.674820],[1074556800000, 9.521030],[1074643200000, 9.667390],[1074729600000, 9.740460],[1074816000000, 9.818940],[1074902400000, 9.818940],[1074988800000, 9.818940],[1075075200000, 9.818940],[1075161600000, 9.732660],[1075248000000, 9.659030],[1075334400000, 9.750980],[1075420800000, 9.703380],[1075507200000, 9.643640]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });