$(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: [[1025481600000,5.3288],[1025568000000,5.3288],[1025654400000,5.3288],[1025740800000,5.3288],[1025827200000,5.3288],[1025913600000,5.3288],[1026000000000,5.3288],[1026086400000,5.3288],[1026172800000,5.3288],[1026259200000,5.3288],[1026345600000,5.3288],[1026432000000,5.3288],[1026518400000,5.3288],[1026604800000,5.3288],[1026691200000,5.3288],[1026777600000,5.3288],[1026864000000,5.3288],[1026950400000,5.3288],[1027036800000,5.3288],[1027123200000,5.3288],[1027209600000,5.3288],[1027296000000,5.3288],[1027382400000,5.3288],[1027468800000,5.3288],[1027555200000,5.3288],[1027641600000,5.3288],[1027728000000,5.3288],[1027814400000,5.3288],[1027900800000,5.329],[1027987200000,5.329],[1028073600000,5.329]], 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: [[1025481600000, 5.328800],[1025481600000, 5.328800],[1025568000000, 5.328800],[1025654400000, 5.328800],[1025740800000, 5.328800],[1025827200000, 5.328800],[1025913600000, 5.328800],[1026000000000, 5.328800],[1026086400000, 5.328800],[1026172800000, 5.328800],[1026259200000, 5.328800],[1026345600000, 5.328800],[1026432000000, 5.328800],[1026518400000, 5.328800],[1026604800000, 5.328800],[1026691200000, 5.328800],[1026777600000, 5.328800],[1026864000000, 5.328800],[1026950400000, 5.328800],[1027036800000, 5.328800],[1027123200000, 5.328800],[1027209600000, 5.328800],[1027296000000, 5.328800],[1027382400000, 5.328800],[1027468800000, 5.328800],[1027555200000, 5.328800],[1027641600000, 5.328800],[1027728000000, 5.328800],[1027814400000, 5.328800],[1027900800000, 5.329000],[1027987200000, 5.329000],[1028073600000, 5.329000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });