$(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: [[1075593600000,9.64364],[1075680000000,9.64364],[1075766400000,9.72064],[1075852800000,9.8145],[1075939200000,9.79127],[1076025600000,9.78716],[1076112000000,9.77708],[1076198400000,9.77708],[1076284800000,9.77708],[1076371200000,9.97542],[1076457600000,9.97542],[1076544000000,9.97079],[1076630400000,10.0792],[1076716800000,10.0792],[1076803200000,10.0792],[1076889600000,10.0499],[1076976000000,10.0499],[1077062400000,10.1585],[1077148800000,10.1478],[1077235200000,10.0228],[1077321600000,10.0228],[1077408000000,10.0228],[1077494400000,10.0228],[1077580800000,9.92303],[1077667200000,10.0023],[1077753600000,10.0743],[1077840000000,9.87861],[1077926400000,9.87861],[1078012800000,9.87861]], 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: [[1075593600000, 9.643640],[1075593600000, 9.643640],[1075680000000, 9.643640],[1075766400000, 9.720640],[1075852800000, 9.814500],[1075939200000, 9.791270],[1076025600000, 9.787160],[1076112000000, 9.777080],[1076198400000, 9.777080],[1076284800000, 9.777080],[1076371200000, 9.975420],[1076457600000, 9.975420],[1076544000000, 9.970790],[1076630400000, 10.079200],[1076716800000, 10.079200],[1076803200000, 10.079200],[1076889600000, 10.049900],[1076976000000, 10.049900],[1077062400000, 10.158500],[1077148800000, 10.147800],[1077235200000, 10.022800],[1077321600000, 10.022800],[1077408000000, 10.022800],[1077494400000, 10.022800],[1077580800000, 9.923030],[1077667200000, 10.002300],[1077753600000, 10.074300],[1077840000000, 9.878610],[1077926400000, 9.878610],[1078012800000, 9.878610]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });