$(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: [[1509494400000,35.5845],[1509580800000,35.7169],[1509667200000,35.3609],[1509753600000,35.3456],[1509840000000,35.3456],[1509926400000,35.3456],[1510012800000,35.2071],[1510099200000,35.1324],[1510185600000,34.9204],[1510272000000,34.8489],[1510358400000,34.9696],[1510444800000,34.9696],[1510531200000,34.9696],[1510617600000,34.6833],[1510704000000,34.7379],[1510790400000,34.8737],[1510876800000,34.9454],[1510963200000,34.9675],[1511049600000,34.9675],[1511136000000,34.9675],[1511222400000,35.0716],[1511308800000,35.0783],[1511395200000,35.253],[1511481600000,35.7569],[1511568000000,35.8677],[1511654400000,35.8677],[1511740800000,35.8677],[1511827200000,35.8865],[1511913600000,35.6778],[1512000000000,36.1856]], 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: [[1509494400000, 35.584462],[1509494400000, 35.584462],[1509580800000, 35.716887],[1509667200000, 35.360908],[1509753600000, 35.345588],[1509840000000, 35.345588],[1509926400000, 35.345588],[1510012800000, 35.207097],[1510099200000, 35.132372],[1510185600000, 34.920433],[1510272000000, 34.848897],[1510358400000, 34.969557],[1510444800000, 34.969557],[1510531200000, 34.969557],[1510617600000, 34.683275],[1510704000000, 34.737946],[1510790400000, 34.873707],[1510876800000, 34.945425],[1510963200000, 34.967470],[1511049600000, 34.967470],[1511136000000, 34.967470],[1511222400000, 35.071563],[1511308800000, 35.078276],[1511395200000, 35.253035],[1511481600000, 35.756906],[1511568000000, 35.867748],[1511654400000, 35.867748],[1511740800000, 35.867748],[1511827200000, 35.886451],[1511913600000, 35.677843],[1512000000000, 36.185626]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });