$(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: [[1498867200000,36.2086],[1498953600000,36.2086],[1499040000000,36.2086],[1499126400000,36.1005],[1499212800000,36.1323],[1499299200000,36.189],[1499385600000,36.1734],[1499472000000,36.1415],[1499558400000,36.1415],[1499644800000,36.1415],[1499731200000,36.0762],[1499817600000,36.0409],[1499904000000,36.0306],[1499990400000,36.0787],[1500076800000,36.1768],[1500163200000,36.1768],[1500249600000,36.1768],[1500336000000,36.1993],[1500422400000,36.2602],[1500508800000,36.25],[1500595200000,36.1684],[1500681600000,36.2931],[1500768000000,36.2931],[1500854400000,36.2931],[1500940800000,36.2383],[1501027200000,36.2495],[1501113600000,36.2918],[1501200000000,36.4171],[1501286400000,36.4254],[1501372800000,36.4254],[1501459200000,36.4254]], 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: [[1498867200000, 36.208590],[1498867200000, 36.208590],[1498953600000, 36.208590],[1499040000000, 36.208590],[1499126400000, 36.100495],[1499212800000, 36.132268],[1499299200000, 36.189021],[1499385600000, 36.173419],[1499472000000, 36.141454],[1499558400000, 36.141454],[1499644800000, 36.141454],[1499731200000, 36.076224],[1499817600000, 36.040852],[1499904000000, 36.030583],[1499990400000, 36.078674],[1500076800000, 36.176836],[1500163200000, 36.176836],[1500249600000, 36.176836],[1500336000000, 36.199251],[1500422400000, 36.260173],[1500508800000, 36.249955],[1500595200000, 36.168404],[1500681600000, 36.293066],[1500768000000, 36.293066],[1500854400000, 36.293066],[1500940800000, 36.238263],[1501027200000, 36.249453],[1501113600000, 36.291834],[1501200000000, 36.417115],[1501286400000, 36.425414],[1501372800000, 36.425414],[1501459200000, 36.425414]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });