$(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: [[1522540800000,7.69793],[1522627200000,7.69793],[1522713600000,7.65518],[1522800000000,7.69987],[1522886400000,7.66993],[1522972800000,7.60153],[1523059200000,7.58435],[1523145600000,7.58435],[1523232000000,7.58435],[1523318400000,7.58435],[1523404800000,7.65761],[1523491200000,7.65994],[1523577600000,7.65294],[1523664000000,7.70492],[1523750400000,7.70492],[1523836800000,7.70492],[1523923200000,7.75277],[1524009600000,7.74737],[1524096000000,7.76839],[1524182400000,7.79402],[1524268800000,7.73162],[1524355200000,7.73162],[1524441600000,7.73162],[1524528000000,7.63193],[1524614400000,7.6127],[1524700800000,7.5781],[1524787200000,7.53464],[1524873600000,7.49938],[1524960000000,7.49938],[1525046400000,7.49938]], 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: [[1522540800000, 7.697932],[1522540800000, 7.697932],[1522627200000, 7.697932],[1522713600000, 7.655184],[1522800000000, 7.699867],[1522886400000, 7.669925],[1522972800000, 7.601526],[1523059200000, 7.584354],[1523145600000, 7.584354],[1523232000000, 7.584354],[1523318400000, 7.584354],[1523404800000, 7.657608],[1523491200000, 7.659943],[1523577600000, 7.652944],[1523664000000, 7.704918],[1523750400000, 7.704918],[1523836800000, 7.704918],[1523923200000, 7.752766],[1524009600000, 7.747369],[1524096000000, 7.768391],[1524182400000, 7.794016],[1524268800000, 7.731617],[1524355200000, 7.731617],[1524441600000, 7.731617],[1524528000000, 7.631932],[1524614400000, 7.612699],[1524700800000, 7.578102],[1524787200000, 7.534637],[1524873600000, 7.499383],[1524960000000, 7.499383],[1525046400000, 7.499383]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });