$(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: [[1456790400000,37.5424],[1456876800000,37.8497],[1456963200000,37.5995],[1457049600000,36.9025],[1457136000000,37.5145],[1457222400000,37.5145],[1457308800000,37.5145],[1457395200000,37.5145],[1457481600000,37.5145],[1457568000000,37.2468],[1457654400000,36.1096],[1457740800000,36.9383],[1457827200000,37.1881],[1457913600000,37.1881],[1458000000000,38.0802],[1458086400000,38.1161],[1458172800000,37.7251],[1458259200000,38.6105],[1458345600000,38.0186],[1458432000000,38.0186],[1458518400000,38.0186],[1458604800000,38.2893],[1458691200000,37.1444],[1458777600000,36.7936],[1458864000000,37.0945],[1458950400000,36.8376],[1459036800000,36.8376],[1459123200000,36.8376],[1459209600000,37.134],[1459296000000,37.726],[1459382400000,37.7823]], 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: [[1456790400000, 37.542403],[1456790400000, 37.542403],[1456876800000, 37.849693],[1456963200000, 37.599487],[1457049600000, 36.902522],[1457136000000, 37.514489],[1457222400000, 37.514489],[1457308800000, 37.514489],[1457395200000, 37.514489],[1457481600000, 37.514489],[1457568000000, 37.246825],[1457654400000, 36.109618],[1457740800000, 36.938295],[1457827200000, 37.188139],[1457913600000, 37.188139],[1458000000000, 38.080198],[1458086400000, 38.116098],[1458172800000, 37.725094],[1458259200000, 38.610475],[1458345600000, 38.018585],[1458432000000, 38.018585],[1458518400000, 38.018585],[1458604800000, 38.289252],[1458691200000, 37.144445],[1458777600000, 36.793605],[1458864000000, 37.094502],[1458950400000, 36.837579],[1459036800000, 36.837579],[1459123200000, 36.837579],[1459209600000, 37.134045],[1459296000000, 37.725952],[1459382400000, 37.782294]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });