$(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: [[1541030400000,28.1188],[1541116800000,28.1579],[1541203200000,28.1328],[1541289600000,28.1328],[1541376000000,28.1328],[1541462400000,28.0153],[1541548800000,27.9558],[1541635200000,27.897],[1541721600000,27.9267],[1541808000000,27.8916],[1541894400000,27.8916],[1541980800000,27.8916],[1542067200000,27.9037],[1542153600000,27.9182],[1542240000000,27.8394],[1542326400000,27.7743],[1542412800000,27.755],[1542499200000,27.755],[1542585600000,27.755],[1542672000000,27.7648],[1542758400000,27.7639],[1542844800000,27.7749],[1542931200000,27.7458],[1543017600000,27.7958],[1543104000000,27.7958],[1543190400000,27.7958],[1543276800000,27.8984],[1543363200000,28.1053],[1543449600000,28.269],[1543536000000,28.3909]], 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: [[1541030400000, 28.118832],[1541030400000, 28.118832],[1541116800000, 28.157863],[1541203200000, 28.132823],[1541289600000, 28.132823],[1541376000000, 28.132823],[1541462400000, 28.015313],[1541548800000, 27.955840],[1541635200000, 27.896958],[1541721600000, 27.926734],[1541808000000, 27.891641],[1541894400000, 27.891641],[1541980800000, 27.891641],[1542067200000, 27.903737],[1542153600000, 27.918162],[1542240000000, 27.839406],[1542326400000, 27.774256],[1542412800000, 27.754970],[1542499200000, 27.754970],[1542585600000, 27.754970],[1542672000000, 27.764829],[1542758400000, 27.763875],[1542844800000, 27.774898],[1542931200000, 27.745837],[1543017600000, 27.795828],[1543104000000, 27.795828],[1543190400000, 27.795828],[1543276800000, 27.898447],[1543363200000, 28.105334],[1543449600000, 28.269049],[1543536000000, 28.390932]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });