$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1519862400000,26.8055],[1519948800000,26.6695],[1520035200000,26.5359],[1520121600000,26.5359],[1520208000000,26.5359],[1520294400000,26.4821],[1520380800000,26.349],[1520467200000,26.094],[1520553600000,26.094],[1520640000000,26.094],[1520726400000,26.094],[1520812800000,26.094],[1520899200000,25.9246],[1520985600000,25.9159],[1521072000000,26.014],[1521158400000,26.2727],[1521244800000,26.3539],[1521331200000,26.3539],[1521417600000,26.3539],[1521504000000,26.436],[1521590400000,26.3011],[1521676800000,26.281],[1521763200000,26.2536],[1521849600000,26.2655],[1521936000000,26.2655],[1522022400000,26.2655],[1522108800000,26.3044],[1522195200000,26.3063],[1522281600000,26.4052],[1522368000000,26.5435],[1522454400000,26.307]], 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: [[1519862400000, 26.805516],[1519862400000, 26.805516],[1519948800000, 26.669496],[1520035200000, 26.535904],[1520121600000, 26.535904],[1520208000000, 26.535904],[1520294400000, 26.482080],[1520380800000, 26.348957],[1520467200000, 26.093953],[1520553600000, 26.093953],[1520640000000, 26.093953],[1520726400000, 26.093953],[1520812800000, 26.093953],[1520899200000, 25.924612],[1520985600000, 25.915887],[1521072000000, 26.013978],[1521158400000, 26.272654],[1521244800000, 26.353910],[1521331200000, 26.353910],[1521417600000, 26.353910],[1521504000000, 26.436044],[1521590400000, 26.301118],[1521676800000, 26.280974],[1521763200000, 26.253649],[1521849600000, 26.265478],[1521936000000, 26.265478],[1522022400000, 26.265478],[1522108800000, 26.304390],[1522195200000, 26.306270],[1522281600000, 26.405249],[1522368000000, 26.543493],[1522454400000, 26.307046]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });