$(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: [[1277942400000,11.8669],[1278028800000,11.859],[1278115200000,12.0287],[1278201600000,12.0287],[1278288000000,12.0287],[1278374400000,11.9777],[1278460800000,11.9927],[1278547200000,11.9449],[1278633600000,11.9779],[1278720000000,11.9474],[1278806400000,11.9474],[1278892800000,11.9474],[1278979200000,11.8808],[1279065600000,11.9407],[1279152000000,12.0311],[1279238400000,12.1285],[1279324800000,12.1485],[1279411200000,12.1485],[1279497600000,12.1485],[1279584000000,12.0655],[1279670400000,11.9703],[1279756800000,12.0579],[1279843200000,12.0404],[1279929600000,12.1637],[1280016000000,12.1637],[1280102400000,12.1637],[1280188800000,12.2377],[1280275200000,12.2745],[1280361600000,12.2967],[1280448000000,12.3289],[1280534400000,12.316]], 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: [[1277942400000, 11.866895],[1277942400000, 11.866895],[1278028800000, 11.858962],[1278115200000, 12.028715],[1278201600000, 12.028715],[1278288000000, 12.028715],[1278374400000, 11.977667],[1278460800000, 11.992738],[1278547200000, 11.944919],[1278633600000, 11.977911],[1278720000000, 11.947407],[1278806400000, 11.947407],[1278892800000, 11.947407],[1278979200000, 11.880788],[1279065600000, 11.940701],[1279152000000, 12.031079],[1279238400000, 12.128458],[1279324800000, 12.148507],[1279411200000, 12.148507],[1279497600000, 12.148507],[1279584000000, 12.065452],[1279670400000, 11.970253],[1279756800000, 12.057859],[1279843200000, 12.040395],[1279929600000, 12.163726],[1280016000000, 12.163726],[1280102400000, 12.163726],[1280188800000, 12.237678],[1280275200000, 12.274530],[1280361600000, 12.296715],[1280448000000, 12.328939],[1280534400000, 12.315977]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });