$(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: [[1091318400000,5.3154],[1091404800000,5.3154],[1091491200000,5.3153],[1091577600000,5.315],[1091664000000,5.315],[1091750400000,5.315],[1091836800000,5.3151],[1091923200000,5.3151],[1092009600000,5.3148],[1092096000000,5.3144],[1092182400000,5.3142],[1092268800000,5.3142],[1092355200000,5.3135],[1092441600000,5.3135],[1092528000000,5.3135],[1092614400000,5.3135],[1092700800000,5.3134],[1092787200000,5.3134],[1092873600000,5.3127],[1092960000000,5.3125],[1093046400000,5.3125],[1093132800000,5.3125],[1093219200000,5.3125],[1093305600000,5.3125],[1093392000000,5.3126],[1093478400000,5.312],[1093564800000,5.3118],[1093651200000,5.3118],[1093737600000,5.3118],[1093824000000,5.3118],[1093910400000,5.3114]], 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: [[1091318400000, 5.315400],[1091318400000, 5.315400],[1091404800000, 5.315400],[1091491200000, 5.315300],[1091577600000, 5.315000],[1091664000000, 5.315000],[1091750400000, 5.315000],[1091836800000, 5.315100],[1091923200000, 5.315100],[1092009600000, 5.314800],[1092096000000, 5.314400],[1092182400000, 5.314200],[1092268800000, 5.314200],[1092355200000, 5.313500],[1092441600000, 5.313500],[1092528000000, 5.313500],[1092614400000, 5.313500],[1092700800000, 5.313400],[1092787200000, 5.313400],[1092873600000, 5.312700],[1092960000000, 5.312500],[1093046400000, 5.312500],[1093132800000, 5.312500],[1093219200000, 5.312500],[1093305600000, 5.312500],[1093392000000, 5.312600],[1093478400000, 5.312000],[1093564800000, 5.311800],[1093651200000, 5.311800],[1093737600000, 5.311800],[1093824000000, 5.311800],[1093910400000, 5.311400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });