$(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: [[1396310400000,18.3098],[1396396800000,18.4702],[1396483200000,18.7292],[1396569600000,18.6278],[1396656000000,19.255],[1396742400000,19.255],[1396828800000,19.255],[1396915200000,19.3079],[1397001600000,19.459],[1397088000000,19.8512],[1397174400000,21.1291],[1397260800000,21.0706],[1397347200000,21.0706],[1397433600000,21.0706],[1397520000000,21.7125],[1397606400000,20.698],[1397692800000,19.0644],[1397779200000,18.9014],[1397865600000,18.8712],[1397952000000,18.8712],[1398038400000,18.8712],[1398124800000,18.8712],[1398211200000,18.9049],[1398297600000,19.3873],[1398384000000,19.1158],[1398470400000,19.1149],[1398556800000,19.1149],[1398643200000,19.1149],[1398729600000,19.09],[1398816000000,19.2182]], 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: [[1396310400000, 18.309805],[1396310400000, 18.309805],[1396396800000, 18.470152],[1396483200000, 18.729212],[1396569600000, 18.627780],[1396656000000, 19.255005],[1396742400000, 19.255005],[1396828800000, 19.255005],[1396915200000, 19.307884],[1397001600000, 19.459030],[1397088000000, 19.851165],[1397174400000, 21.129139],[1397260800000, 21.070603],[1397347200000, 21.070603],[1397433600000, 21.070603],[1397520000000, 21.712483],[1397606400000, 20.697988],[1397692800000, 19.064417],[1397779200000, 18.901415],[1397865600000, 18.871194],[1397952000000, 18.871194],[1398038400000, 18.871194],[1398124800000, 18.871194],[1398211200000, 18.904945],[1398297600000, 19.387331],[1398384000000, 19.115799],[1398470400000, 19.114926],[1398556800000, 19.114926],[1398643200000, 19.114926],[1398729600000, 19.090001],[1398816000000, 19.218221]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });