$(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: [[1075593600000,5.3311],[1075680000000,5.3311],[1075766400000,5.3311],[1075852800000,5.3311],[1075939200000,5.3311],[1076025600000,5.3311],[1076112000000,5.331],[1076198400000,5.331],[1076284800000,5.331],[1076371200000,5.3308],[1076457600000,5.3308],[1076544000000,5.3306],[1076630400000,5.3306],[1076716800000,5.3306],[1076803200000,5.3306],[1076889600000,5.3306],[1076976000000,5.3306],[1077062400000,5.3305],[1077148800000,5.3303],[1077235200000,5.33],[1077321600000,5.33],[1077408000000,5.33],[1077494400000,5.33],[1077580800000,5.33],[1077667200000,5.3303],[1077753600000,5.3303],[1077840000000,5.3299],[1077926400000,5.3299],[1078012800000,5.3299]], 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: [[1075593600000, 5.331100],[1075593600000, 5.331100],[1075680000000, 5.331100],[1075766400000, 5.331100],[1075852800000, 5.331100],[1075939200000, 5.331100],[1076025600000, 5.331100],[1076112000000, 5.331000],[1076198400000, 5.331000],[1076284800000, 5.331000],[1076371200000, 5.330800],[1076457600000, 5.330800],[1076544000000, 5.330600],[1076630400000, 5.330600],[1076716800000, 5.330600],[1076803200000, 5.330600],[1076889600000, 5.330600],[1076976000000, 5.330600],[1077062400000, 5.330500],[1077148800000, 5.330300],[1077235200000, 5.330000],[1077321600000, 5.330000],[1077408000000, 5.330000],[1077494400000, 5.330000],[1077580800000, 5.330000],[1077667200000, 5.330300],[1077753600000, 5.330300],[1077840000000, 5.329900],[1077926400000, 5.329900],[1078012800000, 5.329900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });