$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1509494400000,20.8358],[1509580800000,20.8269],[1509667200000,20.9636],[1509753600000,21.1938],[1509840000000,21.1938],[1509926400000,21.1938],[1510012800000,21.0452],[1510099200000,20.9538],[1510185600000,20.9255],[1510272000000,20.8997],[1510358400000,20.9282],[1510444800000,20.9282],[1510531200000,20.9282],[1510617600000,20.8484],[1510704000000,20.8397],[1510790400000,20.7607],[1510876800000,20.7423],[1510963200000,20.7638],[1511049600000,20.7638],[1511136000000,20.7638],[1511222400000,20.704],[1511308800000,20.6874],[1511395200000,20.9154],[1511481600000,21.1831],[1511568000000,21.1789],[1511654400000,21.1789],[1511740800000,21.1789],[1511827200000,21.1623],[1511913600000,21.0055],[1512000000000,21.0526]], 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, 20.835789],[1509494400000, 20.835789],[1509580800000, 20.826906],[1509667200000, 20.963629],[1509753600000, 21.193768],[1509840000000, 21.193768],[1509926400000, 21.193768],[1510012800000, 21.045211],[1510099200000, 20.953755],[1510185600000, 20.925513],[1510272000000, 20.899670],[1510358400000, 20.928212],[1510444800000, 20.928212],[1510531200000, 20.928212],[1510617600000, 20.848375],[1510704000000, 20.839743],[1510790400000, 20.760743],[1510876800000, 20.742349],[1510963200000, 20.763750],[1511049600000, 20.763750],[1511136000000, 20.763750],[1511222400000, 20.704001],[1511308800000, 20.687440],[1511395200000, 20.915372],[1511481600000, 21.183063],[1511568000000, 21.178916],[1511654400000, 21.178916],[1511740800000, 21.178916],[1511827200000, 21.162256],[1511913600000, 21.005541],[1512000000000, 21.052567]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });