$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1564617600000,1.0874],[1564704000000,1.08689],[1564790400000,1.10089],[1564876800000,1.10089],[1564963200000,1.10089],[1565049600000,1.11642],[1565136000000,1.11276],[1565222400000,1.10737],[1565308800000,1.09879],[1565395200000,1.08784],[1565481600000,1.08784],[1565568000000,1.08784],[1565654400000,1.09026],[1565740800000,1.09253],[1565827200000,1.09137],[1565913600000,1.09111],[1566000000000,1.08216],[1566086400000,1.08216],[1566172800000,1.08216],[1566259200000,1.08427],[1566345600000,1.07906],[1566432000000,1.08502],[1566518400000,1.07644],[1566604800000,1.07618],[1566691200000,1.07618],[1566777600000,1.07618],[1566864000000,1.07618],[1566950400000,1.08248],[1567036800000,1.08162],[1567123200000,1.08062],[1567209600000,1.07081]], 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, 1.087405],[1564617600000, 1.087405],[1564704000000, 1.086889],[1564790400000, 1.100888],[1564876800000, 1.100888],[1564963200000, 1.100888],[1565049600000, 1.116423],[1565136000000, 1.112757],[1565222400000, 1.107366],[1565308800000, 1.098795],[1565395200000, 1.087838],[1565481600000, 1.087838],[1565568000000, 1.087838],[1565654400000, 1.090256],[1565740800000, 1.092532],[1565827200000, 1.091367],[1565913600000, 1.091113],[1566000000000, 1.082157],[1566086400000, 1.082157],[1566172800000, 1.082157],[1566259200000, 1.084273],[1566345600000, 1.079060],[1566432000000, 1.085020],[1566518400000, 1.076436],[1566604800000, 1.076180],[1566691200000, 1.076180],[1566777600000, 1.076180],[1566864000000, 1.076180],[1566950400000, 1.082480],[1567036800000, 1.081620],[1567123200000, 1.080617],[1567209600000, 1.070813]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });