$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1519862400000,7.83616],[1519948800000,7.75558],[1520035200000,7.7892],[1520121600000,7.7892],[1520208000000,7.7892],[1520294400000,7.77673],[1520380800000,7.82057],[1520467200000,7.72571],[1520553600000,7.72571],[1520640000000,7.72571],[1520726400000,7.72571],[1520812800000,7.72571],[1520899200000,7.59109],[1520985600000,7.6162],[1521072000000,7.65692],[1521158400000,7.69742],[1521244800000,7.6869],[1521331200000,7.6869],[1521417600000,7.6869],[1521504000000,7.71623],[1521590400000,7.63707],[1521676800000,7.62176],[1521763200000,7.659],[1521849600000,7.67293],[1521936000000,7.67293],[1522022400000,7.67293],[1522108800000,7.71782],[1522195200000,7.71558],[1522281600000,7.78124],[1522368000000,7.76712],[1522454400000,7.69793]], 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, 7.836159],[1519862400000, 7.836159],[1519948800000, 7.755583],[1520035200000, 7.789196],[1520121600000, 7.789196],[1520208000000, 7.789196],[1520294400000, 7.776730],[1520380800000, 7.820565],[1520467200000, 7.725711],[1520553600000, 7.725711],[1520640000000, 7.725711],[1520726400000, 7.725711],[1520812800000, 7.725711],[1520899200000, 7.591093],[1520985600000, 7.616203],[1521072000000, 7.656923],[1521158400000, 7.697422],[1521244800000, 7.686896],[1521331200000, 7.686896],[1521417600000, 7.686896],[1521504000000, 7.716233],[1521590400000, 7.637073],[1521676800000, 7.621755],[1521763200000, 7.658999],[1521849600000, 7.672935],[1521936000000, 7.672935],[1522022400000, 7.672935],[1522108800000, 7.717820],[1522195200000, 7.715575],[1522281600000, 7.781239],[1522368000000, 7.767121],[1522454400000, 7.697932]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });