$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1535760000000,1.69215],[1535846400000,1.69215],[1535932800000,1.69215],[1536019200000,1.70074],[1536105600000,1.70803],[1536192000000,1.70266],[1536278400000,1.68753],[1536364800000,1.68837],[1536451200000,1.68837],[1536537600000,1.68837],[1536624000000,1.68227],[1536710400000,1.67699],[1536796800000,1.67042],[1536883200000,1.67523],[1536969600000,1.67574],[1537056000000,1.67574],[1537142400000,1.67574],[1537228800000,1.67675],[1537315200000,1.67673],[1537401600000,1.67481],[1537488000000,1.66942],[1537574400000,1.66788],[1537660800000,1.66788],[1537747200000,1.66788],[1537833600000,1.66961],[1537920000000,1.66769],[1538006400000,1.66987],[1538092800000,1.67806],[1538179200000,1.67336],[1538265600000,1.67336]], 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, 1.692154],[1535760000000, 1.692154],[1535846400000, 1.692154],[1535932800000, 1.692154],[1536019200000, 1.700735],[1536105600000, 1.708029],[1536192000000, 1.702657],[1536278400000, 1.687531],[1536364800000, 1.688368],[1536451200000, 1.688368],[1536537600000, 1.688368],[1536624000000, 1.682267],[1536710400000, 1.676990],[1536796800000, 1.670417],[1536883200000, 1.675234],[1536969600000, 1.675739],[1537056000000, 1.675739],[1537142400000, 1.675739],[1537228800000, 1.676747],[1537315200000, 1.676733],[1537401600000, 1.674809],[1537488000000, 1.669424],[1537574400000, 1.667878],[1537660800000, 1.667878],[1537747200000, 1.667878],[1537833600000, 1.669612],[1537920000000, 1.667689],[1538006400000, 1.669871],[1538092800000, 1.678058],[1538179200000, 1.673361],[1538265600000, 1.673361]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });