$(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: [[1530403200000,26.3275],[1530489600000,26.3275],[1530576000000,26.2327],[1530662400000,26.2993],[1530748800000,26.438],[1530835200000,26.4298],[1530921600000,26.316],[1531008000000,26.316],[1531094400000,26.316],[1531180800000,26.2498],[1531267200000,26.2092],[1531353600000,26.2273],[1531440000000,26.228],[1531526400000,26.2332],[1531612800000,26.2332],[1531699200000,26.2332],[1531785600000,26.2068],[1531872000000,26.2216],[1531958400000,26.3033],[1532044800000,26.4724],[1532131200000,26.4461],[1532217600000,26.4461],[1532304000000,26.4461],[1532390400000,26.4497],[1532476800000,26.5832],[1532563200000,26.6269],[1532649600000,26.6514],[1532736000000,26.7615],[1532822400000,26.7615],[1532908800000,26.7615],[1532995200000,26.7552]], 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: [[1530403200000, 26.327494],[1530403200000, 26.327494],[1530489600000, 26.327494],[1530576000000, 26.232692],[1530662400000, 26.299259],[1530748800000, 26.437983],[1530835200000, 26.429780],[1530921600000, 26.315950],[1531008000000, 26.315950],[1531094400000, 26.315950],[1531180800000, 26.249754],[1531267200000, 26.209172],[1531353600000, 26.227255],[1531440000000, 26.228045],[1531526400000, 26.233225],[1531612800000, 26.233225],[1531699200000, 26.233225],[1531785600000, 26.206838],[1531872000000, 26.221563],[1531958400000, 26.303338],[1532044800000, 26.472433],[1532131200000, 26.446104],[1532217600000, 26.446104],[1532304000000, 26.446104],[1532390400000, 26.449683],[1532476800000, 26.583191],[1532563200000, 26.626878],[1532649600000, 26.651412],[1532736000000, 26.761506],[1532822400000, 26.761506],[1532908800000, 26.761506],[1532995200000, 26.755214]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });