$(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: [[1538352000000,28.2699],[1538438400000,28.2127],[1538524800000,28.2763],[1538611200000,28.3201],[1538697600000,28.1751],[1538784000000,28.0848],[1538870400000,28.0848],[1538956800000,28.0848],[1539043200000,28.0879],[1539129600000,28.0814],[1539216000000,28.0029],[1539302400000,27.9845],[1539388800000,27.9282],[1539475200000,27.9282],[1539561600000,27.9282],[1539648000000,27.9282],[1539734400000,27.93],[1539820800000,27.9169],[1539907200000,28.0366],[1539993600000,28.182],[1540080000000,28.182],[1540166400000,28.182],[1540252800000,28.0804],[1540339200000,28.1494],[1540425600000,28.2131],[1540512000000,28.3356],[1540598400000,28.266],[1540684800000,28.266],[1540771200000,28.266],[1540857600000,28.2025],[1540944000000,28.1644]], 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: [[1538352000000, 28.269931],[1538352000000, 28.269931],[1538438400000, 28.212677],[1538524800000, 28.276259],[1538611200000, 28.320055],[1538697600000, 28.175055],[1538784000000, 28.084816],[1538870400000, 28.084816],[1538956800000, 28.084816],[1539043200000, 28.087920],[1539129600000, 28.081440],[1539216000000, 28.002897],[1539302400000, 27.984519],[1539388800000, 27.928166],[1539475200000, 27.928166],[1539561600000, 27.928166],[1539648000000, 27.928166],[1539734400000, 27.930020],[1539820800000, 27.916894],[1539907200000, 28.036647],[1539993600000, 28.182001],[1540080000000, 28.182001],[1540166400000, 28.182001],[1540252800000, 28.080405],[1540339200000, 28.149402],[1540425600000, 28.213097],[1540512000000, 28.335582],[1540598400000, 28.265984],[1540684800000, 28.265984],[1540771200000, 28.265984],[1540857600000, 28.202526],[1540944000000, 28.164437]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });