$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1025481600000,8.10373],[1025568000000,8.15061],[1025654400000,8.15061],[1025740800000,8.13361],[1025827200000,8.08212],[1025913600000,8.08212],[1026000000000,8.08212],[1026086400000,8.15501],[1026172800000,8.2358],[1026259200000,8.24648],[1026345600000,8.24648],[1026432000000,8.24369],[1026518400000,8.24369],[1026604800000,8.24369],[1026691200000,8.32931],[1026777600000,8.32931],[1026864000000,8.33785],[1026950400000,8.33806],[1027036800000,8.33806],[1027123200000,8.33806],[1027209600000,8.4084],[1027296000000,8.38345],[1027382400000,8.34388],[1027468800000,8.34545],[1027555200000,8.39035],[1027641600000,8.41575],[1027728000000,8.41575],[1027814400000,8.41575],[1027900800000,8.32714],[1027987200000,8.32709],[1028073600000,8.32672]], 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, 8.103730],[1025481600000, 8.103730],[1025568000000, 8.150610],[1025654400000, 8.150610],[1025740800000, 8.133610],[1025827200000, 8.082120],[1025913600000, 8.082120],[1026000000000, 8.082120],[1026086400000, 8.155010],[1026172800000, 8.235800],[1026259200000, 8.246480],[1026345600000, 8.246480],[1026432000000, 8.243690],[1026518400000, 8.243690],[1026604800000, 8.243690],[1026691200000, 8.329310],[1026777600000, 8.329310],[1026864000000, 8.337850],[1026950400000, 8.338060],[1027036800000, 8.338060],[1027123200000, 8.338060],[1027209600000, 8.408400],[1027296000000, 8.383450],[1027382400000, 8.343880],[1027468800000, 8.345450],[1027555200000, 8.390350],[1027641600000, 8.415750],[1027728000000, 8.415750],[1027814400000, 8.415750],[1027900800000, 8.327140],[1027987200000, 8.327090],[1028073600000, 8.326720]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });