$(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: [[1477958400000,25.5154],[1478044800000,null],[1478131200000,25.5587],[1478217600000,25.5948],[1478304000000,25.5762],[1478390400000,25.5762],[1478476800000,25.5762],[1478563200000,25.5707],[1478649600000,25.5633],[1478736000000,25.562],[1478822400000,25.5801],[1478908800000,25.6304],[1478995200000,25.6304],[1479081600000,25.6304],[1479168000000,25.7512],[1479254400000,26.0118],[1479340800000,26.3457],[1479427200000,26.0534],[1479513600000,25.8953],[1479600000000,25.8953],[1479686400000,25.8953],[1479772800000,25.7838],[1479859200000,25.6589],[1479945600000,25.5876],[1480032000000,25.588],[1480118400000,25.7244],[1480204800000,25.7244],[1480291200000,25.7244],[1480377600000,25.6595],[1480464000000,25.5994]], 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: [[1477958400000, 25.515438],[1477958400000, 25.515438],[1478131200000, 25.558676],[1478217600000, 25.594826],[1478304000000, 25.576191],[1478390400000, 25.576191],[1478476800000, 25.576191],[1478563200000, 25.570654],[1478649600000, 25.563263],[1478736000000, 25.562021],[1478822400000, 25.580051],[1478908800000, 25.630399],[1478995200000, 25.630399],[1479081600000, 25.630399],[1479168000000, 25.751234],[1479254400000, 26.011762],[1479340800000, 26.345680],[1479427200000, 26.053438],[1479513600000, 25.895267],[1479600000000, 25.895267],[1479686400000, 25.895267],[1479772800000, 25.783819],[1479859200000, 25.658938],[1479945600000, 25.587619],[1480032000000, 25.588045],[1480118400000, 25.724426],[1480204800000, 25.724426],[1480291200000, 25.724426],[1480377600000, 25.659521],[1480464000000, 25.599374]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });