$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1541030400000,4.03179],[1541116800000,4.05843],[1541203200000,4.0806],[1541289600000,4.0806],[1541376000000,4.0806],[1541462400000,4.04334],[1541548800000,4.04328],[1541635200000,4.0346],[1541721600000,4.02863],[1541808000000,4.01332],[1541894400000,4.01332],[1541980800000,4.01332],[1542067200000,4.00698],[1542153600000,4.01239],[1542240000000,4.00384],[1542326400000,4.0025],[1542412800000,3.9933],[1542499200000,3.9933],[1542585600000,3.9933],[1542672000000,3.9984],[1542758400000,3.99868],[1542844800000,4.00505],[1542931200000,4.00225],[1543017600000,4.00094],[1543104000000,4.00094],[1543190400000,4.00094],[1543276800000,4.01945],[1543363200000,4.04504],[1543449600000,4.06541],[1543536000000,4.08899]], 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, 4.031785],[1541030400000, 4.031785],[1541116800000, 4.058428],[1541203200000, 4.080603],[1541289600000, 4.080603],[1541376000000, 4.080603],[1541462400000, 4.043337],[1541548800000, 4.043275],[1541635200000, 4.034603],[1541721600000, 4.028627],[1541808000000, 4.013323],[1541894400000, 4.013323],[1541980800000, 4.013323],[1542067200000, 4.006980],[1542153600000, 4.012385],[1542240000000, 4.003844],[1542326400000, 4.002498],[1542412800000, 3.993303],[1542499200000, 3.993303],[1542585600000, 3.993303],[1542672000000, 3.998396],[1542758400000, 3.998679],[1542844800000, 4.005053],[1542931200000, 4.002249],[1543017600000, 4.000941],[1543104000000, 4.000941],[1543190400000, 4.000941],[1543276800000, 4.019451],[1543363200000, 4.045043],[1543449600000, 4.065405],[1543536000000, 4.088987]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });