$(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: [[1004572800000,5.2937],[1004659200000,5.2943],[1004745600000,5.2943],[1004832000000,5.2943],[1004918400000,5.2943],[1005004800000,5.2994],[1005091200000,5.298],[1005177600000,5.2965],[1005264000000,5.2933],[1005350400000,5.2933],[1005436800000,5.2933],[1005523200000,5.2933],[1005609600000,5.2933],[1005696000000,5.2942],[1005782400000,5.2904],[1005868800000,5.286],[1005955200000,5.286],[1006041600000,5.286],[1006128000000,5.286],[1006214400000,5.2831],[1006300800000,5.2803],[1006387200000,5.2752],[1006473600000,5.2768],[1006560000000,5.2768],[1006646400000,5.2768],[1006732800000,5.2768],[1006819200000,5.2726],[1006905600000,5.276],[1006992000000,5.2781],[1007078400000,5.2865]], 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: [[1004572800000, 5.293700],[1004572800000, 5.293700],[1004659200000, 5.294300],[1004745600000, 5.294300],[1004832000000, 5.294300],[1004918400000, 5.294300],[1005004800000, 5.299400],[1005091200000, 5.298000],[1005177600000, 5.296500],[1005264000000, 5.293300],[1005350400000, 5.293300],[1005436800000, 5.293300],[1005523200000, 5.293300],[1005609600000, 5.293300],[1005696000000, 5.294200],[1005782400000, 5.290400],[1005868800000, 5.286000],[1005955200000, 5.286000],[1006041600000, 5.286000],[1006128000000, 5.286000],[1006214400000, 5.283100],[1006300800000, 5.280300],[1006387200000, 5.275200],[1006473600000, 5.276800],[1006560000000, 5.276800],[1006646400000, 5.276800],[1006732800000, 5.276800],[1006819200000, 5.272600],[1006905600000, 5.276000],[1006992000000, 5.278100],[1007078400000, 5.286500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });