$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1548979200000,0.100889],[1549065600000,0.09957],[1549152000000,0.09957],[1549238400000,0.09957],[1549324800000,0.098762],[1549411200000,0.097945],[1549497600000,0.096422],[1549584000000,0.095792],[1549670400000,0.095878],[1549756800000,0.095878],[1549843200000,0.095878],[1549929600000,0.095725],[1550016000000,0.096],[1550102400000,0.096246],[1550188800000,0.095916],[1550275200000,0.096418],[1550361600000,0.096418],[1550448000000,0.096418],[1550534400000,0.09684],[1550620800000,0.096368],[1550707200000,0.096816],[1550793600000,0.096642],[1550880000000,0.096208],[1550966400000,0.096208],[1551052800000,0.096208],[1551139200000,0.096492],[1551225600000,0.096685],[1551312000000,0.09714]], 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.100889],[1548979200000, 0.100889],[1549065600000, 0.099570],[1549152000000, 0.099570],[1549238400000, 0.099570],[1549324800000, 0.098762],[1549411200000, 0.097945],[1549497600000, 0.096422],[1549584000000, 0.095792],[1549670400000, 0.095878],[1549756800000, 0.095878],[1549843200000, 0.095878],[1549929600000, 0.095725],[1550016000000, 0.096000],[1550102400000, 0.096246],[1550188800000, 0.095916],[1550275200000, 0.096418],[1550361600000, 0.096418],[1550448000000, 0.096418],[1550534400000, 0.096840],[1550620800000, 0.096368],[1550707200000, 0.096816],[1550793600000, 0.096642],[1550880000000, 0.096208],[1550966400000, 0.096208],[1551052800000, 0.096208],[1551139200000, 0.096492],[1551225600000, 0.096685],[1551312000000, 0.097140]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });