$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1541030400000,27.919],[1541116800000,28.0667],[1541203200000,28.1205],[1541289600000,28.1205],[1541376000000,28.1205],[1541462400000,27.8512],[1541548800000,27.8778],[1541635200000,28.0018],[1541721600000,27.8487],[1541808000000,27.7255],[1541894400000,27.7255],[1541980800000,27.7255],[1542067200000,27.6509],[1542153600000,27.6554],[1542240000000,27.5975],[1542326400000,27.6276],[1542412800000,27.5486],[1542499200000,27.5486],[1542585600000,27.5486],[1542672000000,27.8526],[1542758400000,27.9918],[1542844800000,27.9414],[1542931200000,27.8729],[1543017600000,27.8843],[1543104000000,27.8843],[1543190400000,27.8843],[1543276800000,27.9748],[1543363200000,28.1526],[1543449600000,28.2966],[1543536000000,28.5489]], 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: [[1541030400000, 27.919023],[1541030400000, 27.919023],[1541116800000, 28.066713],[1541203200000, 28.120508],[1541289600000, 28.120508],[1541376000000, 28.120508],[1541462400000, 27.851194],[1541548800000, 27.877778],[1541635200000, 28.001779],[1541721600000, 27.848726],[1541808000000, 27.725474],[1541894400000, 27.725474],[1541980800000, 27.725474],[1542067200000, 27.650915],[1542153600000, 27.655385],[1542240000000, 27.597537],[1542326400000, 27.627626],[1542412800000, 27.548586],[1542499200000, 27.548586],[1542585600000, 27.548586],[1542672000000, 27.852577],[1542758400000, 27.991809],[1542844800000, 27.941435],[1542931200000, 27.872943],[1543017600000, 27.884256],[1543104000000, 27.884256],[1543190400000, 27.884256],[1543276800000, 27.974766],[1543363200000, 28.152553],[1543449600000, 28.296633],[1543536000000, 28.548882]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });