$(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: [[1548979200000,0.072991],[1549065600000,0.072035],[1549152000000,0.072035],[1549238400000,0.072035],[1549324800000,0.071747],[1549411200000,0.07169],[1549497600000,0.071601],[1549584000000,0.071327],[1549670400000,0.071027],[1549756800000,0.071027],[1549843200000,0.071027],[1549929600000,0.072052],[1550016000000,0.072056],[1550102400000,0.072526],[1550188800000,0.072163],[1550275200000,0.072157],[1550361600000,0.072157],[1550448000000,0.072157],[1550534400000,0.072253],[1550620800000,0.072212],[1550707200000,0.072024],[1550793600000,0.071825],[1550880000000,0.071715],[1550966400000,0.071715],[1551052800000,0.071715],[1551139200000,0.071751],[1551225600000,0.071375],[1551312000000,0.071549]], 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: [[1548979200000, 0.072991],[1548979200000, 0.072991],[1549065600000, 0.072035],[1549152000000, 0.072035],[1549238400000, 0.072035],[1549324800000, 0.071747],[1549411200000, 0.071690],[1549497600000, 0.071601],[1549584000000, 0.071327],[1549670400000, 0.071027],[1549756800000, 0.071027],[1549843200000, 0.071027],[1549929600000, 0.072052],[1550016000000, 0.072056],[1550102400000, 0.072526],[1550188800000, 0.072163],[1550275200000, 0.072157],[1550361600000, 0.072157],[1550448000000, 0.072157],[1550534400000, 0.072253],[1550620800000, 0.072212],[1550707200000, 0.072024],[1550793600000, 0.071825],[1550880000000, 0.071715],[1550966400000, 0.071715],[1551052800000, 0.071715],[1551139200000, 0.071751],[1551225600000, 0.071375],[1551312000000, 0.071549]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });