$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1509494400000,31.262],[1509580800000,31.2112],[1509667200000,31.3616],[1509753600000,31.4304],[1509840000000,31.4304],[1509926400000,31.4304],[1510012800000,31.1196],[1510099200000,30.9298],[1510185600000,30.8714],[1510272000000,30.8876],[1510358400000,30.9026],[1510444800000,30.9026],[1510531200000,30.9026],[1510617600000,30.8744],[1510704000000,31.12],[1510790400000,31.3549],[1510876800000,31.1654],[1510963200000,31.2557],[1511049600000,31.2557],[1511136000000,31.2557],[1511222400000,31.1926],[1511308800000,31.0436],[1511395200000,31.3082],[1511481600000,31.8254],[1511568000000,31.9653],[1511654400000,31.9653],[1511740800000,31.9653],[1511827200000,32.0735],[1511913600000,31.9452],[1512000000000,31.9494]], 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, 31.262018],[1509494400000, 31.262018],[1509580800000, 31.211202],[1509667200000, 31.361590],[1509753600000, 31.430358],[1509840000000, 31.430358],[1509926400000, 31.430358],[1510012800000, 31.119553],[1510099200000, 30.929838],[1510185600000, 30.871409],[1510272000000, 30.887623],[1510358400000, 30.902597],[1510444800000, 30.902597],[1510531200000, 30.902597],[1510617600000, 30.874358],[1510704000000, 31.119989],[1510790400000, 31.354950],[1510876800000, 31.165379],[1510963200000, 31.255673],[1511049600000, 31.255673],[1511136000000, 31.255673],[1511222400000, 31.192648],[1511308800000, 31.043573],[1511395200000, 31.308221],[1511481600000, 31.825434],[1511568000000, 31.965337],[1511654400000, 31.965337],[1511740800000, 31.965337],[1511827200000, 32.073516],[1511913600000, 31.945227],[1512000000000, 31.949375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });