$(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: [[1483228800000,27.1909],[1483315200000,27.1909],[1483401600000,27.1909],[1483488000000,27.1909],[1483574400000,26.6924],[1483660800000,26.6924],[1483747200000,27.0209],[1483833600000,27.0209],[1483920000000,27.0209],[1484006400000,27.0209],[1484092800000,27.1868],[1484179200000,27.1132],[1484265600000,27.2516],[1484352000000,null],[1484438400000,27.6692],[1484524800000,27.6692],[1484611200000,27.7215],[1484697600000,27.6298],[1484784000000,27.4919],[1484870400000,27.4422],[1484956800000,27.4285],[1485043200000,27.4285],[1485129600000,27.4285],[1485216000000,27.3325],[1485302400000,27.2319],[1485388800000,27.2081],[1485475200000,27.2131],[1485561600000,27.1922],[1485648000000,27.1922],[1485734400000,27.1922],[1485820800000,27.119]], 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: [[1483228800000, 27.190858],[1483228800000, 27.190858],[1483315200000, 27.190858],[1483401600000, 27.190858],[1483488000000, 27.190858],[1483574400000, 26.692366],[1483660800000, 26.692366],[1483747200000, 27.020929],[1483833600000, 27.020929],[1483920000000, 27.020929],[1484006400000, 27.020929],[1484092800000, 27.186833],[1484179200000, 27.113199],[1484265600000, 27.251629],[1484438400000, 27.669232],[1484524800000, 27.669232],[1484611200000, 27.721541],[1484697600000, 27.629792],[1484784000000, 27.491865],[1484870400000, 27.442159],[1484956800000, 27.428490],[1485043200000, 27.428490],[1485129600000, 27.428490],[1485216000000, 27.332499],[1485302400000, 27.231902],[1485388800000, 27.208137],[1485475200000, 27.213078],[1485561600000, 27.192242],[1485648000000, 27.192242],[1485734400000, 27.192242],[1485820800000, 27.119036]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });