$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1541030400000,0.076213],[1541116800000,0.076012],[1541203200000,0.075766],[1541289600000,0.075766],[1541376000000,0.075766],[1541462400000,0.075334],[1541548800000,0.075383],[1541635200000,0.075155],[1541721600000,0.075258],[1541808000000,0.074847],[1541894400000,0.074847],[1541980800000,0.074847],[1542067200000,0.074515],[1542153600000,0.074608],[1542240000000,0.074061],[1542326400000,0.075267],[1542412800000,0.075614],[1542499200000,0.075614],[1542585600000,0.075614],[1542672000000,0.075592],[1542758400000,0.076076],[1542844800000,0.075418],[1542931200000,0.075546],[1543017600000,0.075935],[1543104000000,0.075935],[1543190400000,0.075935],[1543276800000,0.075192],[1543363200000,0.075384],[1543449600000,0.075843],[1543536000000,0.076468]], 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, 0.076213],[1541030400000, 0.076213],[1541116800000, 0.076012],[1541203200000, 0.075766],[1541289600000, 0.075766],[1541376000000, 0.075766],[1541462400000, 0.075334],[1541548800000, 0.075383],[1541635200000, 0.075155],[1541721600000, 0.075258],[1541808000000, 0.074847],[1541894400000, 0.074847],[1541980800000, 0.074847],[1542067200000, 0.074515],[1542153600000, 0.074608],[1542240000000, 0.074061],[1542326400000, 0.075267],[1542412800000, 0.075614],[1542499200000, 0.075614],[1542585600000, 0.075614],[1542672000000, 0.075592],[1542758400000, 0.076076],[1542844800000, 0.075418],[1542931200000, 0.075546],[1543017600000, 0.075935],[1543104000000, 0.075935],[1543190400000, 0.075935],[1543276800000, 0.075192],[1543363200000, 0.075384],[1543449600000, 0.075843],[1543536000000, 0.076468]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });