$(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: [[1483228800000,3.90925],[1483315200000,3.90925],[1483401600000,3.90925],[1483488000000,3.90925],[1483574400000,3.84886],[1483660800000,3.84886],[1483747200000,3.90598],[1483833600000,3.90598],[1483920000000,3.90598],[1484006400000,3.90598],[1484092800000,3.92592],[1484179200000,3.91028],[1484265600000,3.95295],[1484352000000,null],[1484438400000,4.00986],[1484524800000,4.00986],[1484611200000,4.01715],[1484697600000,4.03081],[1484784000000,4.01987],[1484870400000,3.99712],[1484956800000,3.98796],[1485043200000,3.98796],[1485129600000,3.98796],[1485216000000,3.98807],[1485302400000,3.97022],[1485388800000,3.95343],[1485475200000,3.95442],[1485561600000,3.94331],[1485648000000,3.94331],[1485734400000,3.94331],[1485820800000,3.94341]], 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: [[1483228800000, 3.909251],[1483228800000, 3.909251],[1483315200000, 3.909251],[1483401600000, 3.909251],[1483488000000, 3.909251],[1483574400000, 3.848861],[1483660800000, 3.848861],[1483747200000, 3.905978],[1483833600000, 3.905978],[1483920000000, 3.905978],[1484006400000, 3.905978],[1484092800000, 3.925922],[1484179200000, 3.910278],[1484265600000, 3.952950],[1484438400000, 4.009865],[1484524800000, 4.009865],[1484611200000, 4.017153],[1484697600000, 4.030814],[1484784000000, 4.019871],[1484870400000, 3.997118],[1484956800000, 3.987962],[1485043200000, 3.987962],[1485129600000, 3.987962],[1485216000000, 3.988068],[1485302400000, 3.970219],[1485388800000, 3.953432],[1485475200000, 3.954422],[1485561600000, 3.943307],[1485648000000, 3.943307],[1485734400000, 3.943307],[1485820800000, 3.943413]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });