$(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: [[1517443200000,4.42745],[1517529600000,4.42602],[1517616000000,4.43496],[1517702400000,4.43496],[1517788800000,4.43496],[1517875200000,4.41054],[1517961600000,4.37163],[1518048000000,4.32213],[1518134400000,4.28534],[1518220800000,4.29267],[1518307200000,4.29267],[1518393600000,4.29267],[1518480000000,4.24132],[1518566400000,4.20843],[1518652800000,4.20129],[1518739200000,4.21784],[1518825600000,4.25426],[1518912000000,4.25426],[1518998400000,4.25426],[1519084800000,4.2576],[1519171200000,4.26721],[1519257600000,4.25385],[1519344000000,4.25605],[1519430400000,4.26025],[1519516800000,4.26025],[1519603200000,4.26025],[1519689600000,4.28086],[1519776000000,4.2682]], 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: [[1517443200000, 4.427449],[1517443200000, 4.427449],[1517529600000, 4.426019],[1517616000000, 4.434960],[1517702400000, 4.434960],[1517788800000, 4.434960],[1517875200000, 4.410542],[1517961600000, 4.371627],[1518048000000, 4.322131],[1518134400000, 4.285336],[1518220800000, 4.292670],[1518307200000, 4.292670],[1518393600000, 4.292670],[1518480000000, 4.241320],[1518566400000, 4.208434],[1518652800000, 4.201287],[1518739200000, 4.217840],[1518825600000, 4.254264],[1518912000000, 4.254264],[1518998400000, 4.254264],[1519084800000, 4.257601],[1519171200000, 4.267213],[1519257600000, 4.253850],[1519344000000, 4.256054],[1519430400000, 4.260255],[1519516800000, 4.260255],[1519603200000, 4.260255],[1519689600000, 4.280862],[1519776000000, 4.268198]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });