$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1564617600000,34.414],[1564704000000,34.72],[1564790400000,35.0668],[1564876800000,35.0668],[1564963200000,35.0668],[1565049600000,35.3765],[1565136000000,35.2182],[1565222400000,34.9606],[1565308800000,34.8368],[1565395200000,34.5195],[1565481600000,34.5195],[1565568000000,34.5195],[1565654400000,34.6141],[1565740800000,34.6185],[1565827200000,34.7309],[1565913600000,34.8017],[1566000000000,34.4873],[1566086400000,34.4873],[1566172800000,34.4873],[1566259200000,34.5448],[1566345600000,34.4455],[1566432000000,34.5731],[1566518400000,34.3109],[1566604800000,34.3376],[1566691200000,34.3376],[1566777600000,34.3376],[1566864000000,34.3376],[1566950400000,34.5222],[1567036800000,34.5776],[1567123200000,34.5636],[1567209600000,34.4057]], 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, 34.413983],[1564617600000, 34.413983],[1564704000000, 34.719971],[1564790400000, 35.066798],[1564876800000, 35.066798],[1564963200000, 35.066798],[1565049600000, 35.376480],[1565136000000, 35.218164],[1565222400000, 34.960629],[1565308800000, 34.836843],[1565395200000, 34.519458],[1565481600000, 34.519458],[1565568000000, 34.519458],[1565654400000, 34.614134],[1565740800000, 34.618464],[1565827200000, 34.730883],[1565913600000, 34.801705],[1566000000000, 34.487280],[1566086400000, 34.487280],[1566172800000, 34.487280],[1566259200000, 34.544829],[1566345600000, 34.445454],[1566432000000, 34.573073],[1566518400000, 34.310940],[1566604800000, 34.337571],[1566691200000, 34.337571],[1566777600000, 34.337571],[1566864000000, 34.337571],[1566950400000, 34.522162],[1567036800000, 34.577629],[1567123200000, 34.563562],[1567209600000, 34.405670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });