$(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: [[1551398400000,4.01819],[1551484800000,4.00583],[1551571200000,4.00583],[1551657600000,4.00583],[1551744000000,4.00261],[1551830400000,3.99256],[1551916800000,3.9465],[1552003200000,3.93315],[1552089600000,3.93315],[1552176000000,3.93315],[1552262400000,3.93315],[1552348800000,3.91276],[1552435200000,3.92903],[1552521600000,3.98089],[1552608000000,3.9714],[1552694400000,4.02365],[1552780800000,4.02365],[1552867200000,4.02365],[1552953600000,4.04169],[1553040000000,4.0465],[1553126400000,4.05799],[1553212800000,4.07317],[1553299200000,4.01635],[1553385600000,4.01635],[1553472000000,4.01635],[1553558400000,4.00604],[1553644800000,4.01796],[1553731200000,4.02709],[1553817600000,4.04361],[1553904000000,4.05446],[1553990400000,4.05446]], 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: [[1551398400000, 4.018192],[1551398400000, 4.018192],[1551484800000, 4.005829],[1551571200000, 4.005829],[1551657600000, 4.005829],[1551744000000, 4.002614],[1551830400000, 3.992559],[1551916800000, 3.946496],[1552003200000, 3.933145],[1552089600000, 3.933145],[1552176000000, 3.933145],[1552262400000, 3.933145],[1552348800000, 3.912760],[1552435200000, 3.929035],[1552521600000, 3.980891],[1552608000000, 3.971398],[1552694400000, 4.023655],[1552780800000, 4.023655],[1552867200000, 4.023655],[1552953600000, 4.041685],[1553040000000, 4.046496],[1553126400000, 4.057991],[1553212800000, 4.073173],[1553299200000, 4.016351],[1553385600000, 4.016351],[1553472000000, 4.016351],[1553558400000, 4.006044],[1553644800000, 4.017960],[1553731200000, 4.027094],[1553817600000, 4.043609],[1553904000000, 4.054462],[1553990400000, 4.054462]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });