$(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: [[1491004800000,27.0217],[1491091200000,27.0217],[1491177600000,27.0217],[1491264000000,27.0246],[1491350400000,27.119],[1491436800000,27.157],[1491523200000,27.1003],[1491609600000,26.974],[1491696000000,26.974],[1491782400000,26.974],[1491868800000,26.9332],[1491955200000,26.8938],[1492041600000,26.8757],[1492128000000,26.8642],[1492214400000,26.8121],[1492300800000,26.8121],[1492387200000,26.8121],[1492473600000,26.8121],[1492560000000,26.845],[1492646400000,26.7871],[1492732800000,26.7567],[1492819200000,26.7328],[1492905600000,26.7328],[1492992000000,26.7328],[1493078400000,26.6737],[1493164800000,26.6318],[1493251200000,26.5889],[1493337600000,26.5515],[1493424000000,26.5609],[1493510400000,26.5609]], 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: [[1491004800000, 27.021745],[1491004800000, 27.021745],[1491091200000, 27.021745],[1491177600000, 27.021745],[1491264000000, 27.024639],[1491350400000, 27.118953],[1491436800000, 27.157009],[1491523200000, 27.100326],[1491609600000, 26.973995],[1491696000000, 26.973995],[1491782400000, 26.973995],[1491868800000, 26.933241],[1491955200000, 26.893785],[1492041600000, 26.875671],[1492128000000, 26.864209],[1492214400000, 26.812058],[1492300800000, 26.812058],[1492387200000, 26.812058],[1492473600000, 26.812058],[1492560000000, 26.844959],[1492646400000, 26.787082],[1492732800000, 26.756734],[1492819200000, 26.732780],[1492905600000, 26.732780],[1492992000000, 26.732780],[1493078400000, 26.673697],[1493164800000, 26.631832],[1493251200000, 26.588876],[1493337600000, 26.551453],[1493424000000, 26.560930],[1493510400000, 26.560930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });