$(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: [[1527811200000,4.0774],[1527897600000,4.06933],[1527984000000,4.06933],[1528070400000,4.06933],[1528156800000,4.08059],[1528243200000,4.08418],[1528329600000,4.09146],[1528416000000,4.09421],[1528502400000,4.07799],[1528588800000,4.07799],[1528675200000,4.07799],[1528761600000,4.07342],[1528848000000,4.07332],[1528934400000,4.08172],[1529020800000,4.10027],[1529107200000,4.09808],[1529193600000,4.09808],[1529280000000,4.09808],[1529366400000,4.08877],[1529452800000,4.07989],[1529539200000,null],[1529625600000,4.04806],[1529712000000,4.03798],[1529798400000,4.03798],[1529884800000,4.03798],[1529971200000,4.0047],[1530057600000,3.98285],[1530144000000,3.98988],[1530230400000,3.98988],[1530316800000,3.98988]], 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: [[1527811200000, 4.077396],[1527811200000, 4.077396],[1527897600000, 4.069330],[1527984000000, 4.069330],[1528070400000, 4.069330],[1528156800000, 4.080589],[1528243200000, 4.084175],[1528329600000, 4.091456],[1528416000000, 4.094211],[1528502400000, 4.077993],[1528588800000, 4.077993],[1528675200000, 4.077993],[1528761600000, 4.073421],[1528848000000, 4.073320],[1528934400000, 4.081723],[1529020800000, 4.100266],[1529107200000, 4.098076],[1529193600000, 4.098076],[1529280000000, 4.098076],[1529366400000, 4.088774],[1529452800000, 4.079893],[1529625600000, 4.048059],[1529712000000, 4.037981],[1529798400000, 4.037981],[1529884800000, 4.037981],[1529971200000, 4.004700],[1530057600000, 3.982853],[1530144000000, 3.989878],[1530230400000, 3.989878],[1530316800000, 3.989878]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });