$(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: [[1496275200000,0.084258],[1496361600000,0.084107],[1496448000000,0.083919],[1496534400000,0.083919],[1496620800000,0.083919],[1496707200000,0.083919],[1496793600000,0.083858],[1496880000000,0.083817],[1496966400000,0.083249],[1497052800000,0.082888],[1497139200000,0.082888],[1497225600000,0.082888],[1497312000000,0.082401],[1497398400000,0.082274],[1497484800000,0.082256],[1497571200000,0.081873],[1497657600000,0.081395],[1497744000000,0.081395],[1497830400000,0.081395],[1497916800000,0.081434],[1498003200000,0.080924],[1498089600000,0.079758],[1498176000000,0.079436],[1498262400000,0.079635],[1498348800000,0.079635],[1498435200000,0.079635],[1498521600000,0.080113],[1498608000000,0.080992],[1498694400000,0.080992],[1498780800000,0.081189]], 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: [[1496275200000, 0.084258],[1496275200000, 0.084258],[1496361600000, 0.084107],[1496448000000, 0.083919],[1496534400000, 0.083919],[1496620800000, 0.083919],[1496707200000, 0.083919],[1496793600000, 0.083858],[1496880000000, 0.083817],[1496966400000, 0.083249],[1497052800000, 0.082888],[1497139200000, 0.082888],[1497225600000, 0.082888],[1497312000000, 0.082401],[1497398400000, 0.082274],[1497484800000, 0.082256],[1497571200000, 0.081873],[1497657600000, 0.081395],[1497744000000, 0.081395],[1497830400000, 0.081395],[1497916800000, 0.081434],[1498003200000, 0.080924],[1498089600000, 0.079758],[1498176000000, 0.079436],[1498262400000, 0.079635],[1498348800000, 0.079635],[1498435200000, 0.079635],[1498521600000, 0.080113],[1498608000000, 0.080992],[1498694400000, 0.080992],[1498780800000, 0.081189]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });