$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1564617600000,18.2823],[1564704000000,18.4337],[1564790400000,18.5495],[1564876800000,18.5495],[1564963200000,18.5495],[1565049600000,18.6222],[1565136000000,18.5402],[1565222400000,18.3863],[1565308800000,18.3019],[1565395200000,18.1491],[1565481600000,18.1491],[1565568000000,18.1491],[1565654400000,18.1459],[1565740800000,18.117],[1565827200000,18.1899],[1565913600000,18.2353],[1566000000000,18.1351],[1566086400000,18.1351],[1566172800000,18.1351],[1566259200000,18.1793],[1566345600000,18.1326],[1566432000000,18.2278],[1566518400000,18.0684],[1566604800000,18.0547],[1566691200000,18.0547],[1566777600000,18.0547],[1566864000000,18.0547],[1566950400000,18.1319],[1567036800000,18.1598],[1567123200000,18.1954],[1567209600000,18.1224]], 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: [[1564617600000, 18.282317],[1564617600000, 18.282317],[1564704000000, 18.433724],[1564790400000, 18.549498],[1564876800000, 18.549498],[1564963200000, 18.549498],[1565049600000, 18.622227],[1565136000000, 18.540185],[1565222400000, 18.386284],[1565308800000, 18.301897],[1565395200000, 18.149146],[1565481600000, 18.149146],[1565568000000, 18.149146],[1565654400000, 18.145883],[1565740800000, 18.116988],[1565827200000, 18.189914],[1565913600000, 18.235252],[1566000000000, 18.135073],[1566086400000, 18.135073],[1566172800000, 18.135073],[1566259200000, 18.179346],[1566345600000, 18.132648],[1566432000000, 18.227821],[1566518400000, 18.068369],[1566604800000, 18.054745],[1566691200000, 18.054745],[1566777600000, 18.054745],[1566864000000, 18.054745],[1566950400000, 18.131944],[1567036800000, 18.159802],[1567123200000, 18.195390],[1567209600000, 18.122414]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });