$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1025481600000,5.23501],[1025568000000,5.24247],[1025654400000,5.24247],[1025740800000,5.2169],[1025827200000,5.18226],[1025913600000,5.18226],[1026000000000,5.18226],[1026086400000,5.23714],[1026172800000,5.2915],[1026259200000,5.27445],[1026345600000,5.27445],[1026432000000,5.26112],[1026518400000,5.26112],[1026604800000,5.26112],[1026691200000,5.34159],[1026777600000,5.34159],[1026864000000,5.3629],[1026950400000,5.35971],[1027036800000,5.35971],[1027123200000,5.35971],[1027209600000,5.4066],[1027296000000,5.37463],[1027382400000,5.28084],[1027468800000,5.2835],[1027555200000,5.33626],[1027641600000,5.33306],[1027728000000,5.33306],[1027814400000,5.33306],[1027900800000,5.23361],[1027987200000,5.24107],[1028073600000,5.21336]], 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.235010],[1025481600000, 5.235010],[1025568000000, 5.242470],[1025654400000, 5.242470],[1025740800000, 5.216900],[1025827200000, 5.182260],[1025913600000, 5.182260],[1026000000000, 5.182260],[1026086400000, 5.237140],[1026172800000, 5.291500],[1026259200000, 5.274450],[1026345600000, 5.274450],[1026432000000, 5.261120],[1026518400000, 5.261120],[1026604800000, 5.261120],[1026691200000, 5.341590],[1026777600000, 5.341590],[1026864000000, 5.362900],[1026950400000, 5.359710],[1027036800000, 5.359710],[1027123200000, 5.359710],[1027209600000, 5.406600],[1027296000000, 5.374630],[1027382400000, 5.280840],[1027468800000, 5.283500],[1027555200000, 5.336260],[1027641600000, 5.333060],[1027728000000, 5.333060],[1027814400000, 5.333060],[1027900800000, 5.233610],[1027987200000, 5.241070],[1028073600000, 5.213360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });