$(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: [[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]], 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: [[1017619200000, 5.322000],[1017619200000, 5.322000],[1017705600000, 5.322900],[1017792000000, 5.324700],[1017878400000, 5.327600],[1017964800000, 5.327600],[1018051200000, 5.327600],[1018137600000, 5.327600],[1018224000000, 5.328600],[1018310400000, 5.328600],[1018396800000, 5.328600],[1018483200000, 5.328600],[1018569600000, 5.328300],[1018656000000, 5.328300],[1018742400000, 5.328300],[1018828800000, 5.328100],[1018915200000, 5.328100],[1019001600000, 5.328000],[1019088000000, 5.327900],[1019174400000, 5.328000],[1019260800000, 5.328000],[1019347200000, 5.328000],[1019433600000, 5.327800],[1019520000000, 5.327800],[1019606400000, 5.327800],[1019692800000, 5.327400],[1019779200000, 5.327400],[1019865600000, 5.327400],[1019952000000, 5.327400],[1020038400000, 5.327400],[1020124800000, 5.327000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });