$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1535760000000,21.6624],[1535846400000,21.6624],[1535932800000,21.6624],[1536019200000,21.7096],[1536105600000,21.625],[1536192000000,21.5595],[1536278400000,21.4086],[1536364800000,21.5447],[1536451200000,21.5447],[1536537600000,21.5447],[1536624000000,21.3722],[1536710400000,21.3498],[1536796800000,21.4496],[1536883200000,21.6274],[1536969600000,21.6408],[1537056000000,21.6408],[1537142400000,21.6408],[1537228800000,21.6065],[1537315200000,21.6107],[1537401600000,21.6754],[1537488000000,21.7649],[1537574400000,21.7142],[1537660800000,21.7142],[1537747200000,21.7142],[1537833600000,21.7288],[1537920000000,21.6536],[1538006400000,21.7111],[1538092800000,21.6514],[1538179200000,21.7242],[1538265600000,21.7242]], 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: [[1535760000000, 21.662422],[1535760000000, 21.662422],[1535846400000, 21.662422],[1535932800000, 21.662422],[1536019200000, 21.709632],[1536105600000, 21.625048],[1536192000000, 21.559497],[1536278400000, 21.408617],[1536364800000, 21.544672],[1536451200000, 21.544672],[1536537600000, 21.544672],[1536624000000, 21.372161],[1536710400000, 21.349789],[1536796800000, 21.449582],[1536883200000, 21.627439],[1536969600000, 21.640771],[1537056000000, 21.640771],[1537142400000, 21.640771],[1537228800000, 21.606486],[1537315200000, 21.610706],[1537401600000, 21.675372],[1537488000000, 21.764855],[1537574400000, 21.714247],[1537660800000, 21.714247],[1537747200000, 21.714247],[1537833600000, 21.728839],[1537920000000, 21.653575],[1538006400000, 21.711092],[1538092800000, 21.651379],[1538179200000, 21.724158],[1538265600000, 21.724158]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });