$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1496275200000,0.46413],[1496361600000,0.46467],[1496448000000,0.46361],[1496534400000,0.46361],[1496620800000,0.46361],[1496707200000,0.46361],[1496793600000,0.46311],[1496880000000,0.46309],[1496966400000,0.45887],[1497052800000,0.45831],[1497139200000,0.45831],[1497225600000,0.45831],[1497312000000,0.45736],[1497398400000,0.45678],[1497484800000,0.45616],[1497571200000,0.45274],[1497657600000,0.45067],[1497744000000,0.45067],[1497830400000,0.45067],[1497916800000,0.449],[1498003200000,0.44444],[1498089600000,0.43373],[1498176000000,0.43269],[1498262400000,0.43635],[1498348800000,0.43635],[1498435200000,0.43635],[1498521600000,0.44129],[1498608000000,0.4429],[1498694400000,0.4429],[1498780800000,0.44172]], 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.464130],[1496275200000, 0.464130],[1496361600000, 0.464670],[1496448000000, 0.463610],[1496534400000, 0.463610],[1496620800000, 0.463610],[1496707200000, 0.463610],[1496793600000, 0.463110],[1496880000000, 0.463090],[1496966400000, 0.458870],[1497052800000, 0.458310],[1497139200000, 0.458310],[1497225600000, 0.458310],[1497312000000, 0.457360],[1497398400000, 0.456780],[1497484800000, 0.456160],[1497571200000, 0.452740],[1497657600000, 0.450670],[1497744000000, 0.450670],[1497830400000, 0.450670],[1497916800000, 0.449000],[1498003200000, 0.444440],[1498089600000, 0.433730],[1498176000000, 0.432690],[1498262400000, 0.436350],[1498348800000, 0.436350],[1498435200000, 0.436350],[1498521600000, 0.441290],[1498608000000, 0.442900],[1498694400000, 0.442900],[1498780800000, 0.441720]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });