$(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: [[1093996800000,5.3112],[1094083200000,5.3112],[1094169600000,5.3111],[1094256000000,5.3111],[1094342400000,5.3111],[1094428800000,5.3111],[1094515200000,5.3106],[1094601600000,5.3106],[1094688000000,5.3107],[1094774400000,5.3101],[1094860800000,5.3101],[1094947200000,5.3101],[1095033600000,5.3101],[1095120000000,5.31],[1095206400000,5.3096],[1095292800000,5.3096],[1095379200000,5.3094],[1095465600000,5.309],[1095552000000,5.309],[1095638400000,5.309],[1095724800000,5.3088],[1095811200000,5.3086],[1095897600000,5.3085],[1095984000000,5.3082],[1096070400000,5.3081],[1096156800000,5.3081],[1096243200000,5.3081],[1096329600000,5.308],[1096416000000,5.3078],[1096502400000,5.3077]], 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: [[1093996800000, 5.311200],[1093996800000, 5.311200],[1094083200000, 5.311200],[1094169600000, 5.311100],[1094256000000, 5.311100],[1094342400000, 5.311100],[1094428800000, 5.311100],[1094515200000, 5.310600],[1094601600000, 5.310600],[1094688000000, 5.310700],[1094774400000, 5.310100],[1094860800000, 5.310100],[1094947200000, 5.310100],[1095033600000, 5.310100],[1095120000000, 5.310000],[1095206400000, 5.309600],[1095292800000, 5.309600],[1095379200000, 5.309400],[1095465600000, 5.309000],[1095552000000, 5.309000],[1095638400000, 5.309000],[1095724800000, 5.308800],[1095811200000, 5.308600],[1095897600000, 5.308500],[1095984000000, 5.308200],[1096070400000, 5.308100],[1096156800000, 5.308100],[1096243200000, 5.308100],[1096329600000, 5.308000],[1096416000000, 5.307800],[1096502400000, 5.307700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });