$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1475280000000,28.9482],[1475366400000,28.9482],[1475452800000,28.9482],[1475539200000,29.1244],[1475625600000,28.8673],[1475712000000,29.0346],[1475798400000,28.9568],[1475884800000,28.7867],[1475971200000,28.7867],[1476057600000,28.7867],[1476144000000,28.8231],[1476230400000,28.6411],[1476316800000,28.4398],[1476403200000,28.4679],[1476489600000,28.4679],[1476576000000,28.4679],[1476662400000,28.4679],[1476748800000,28.346],[1476835200000,28.2114],[1476921600000,28.2086],[1477008000000,28.2225],[1477094400000,27.9365],[1477180800000,27.9365],[1477267200000,27.9365],[1477353600000,27.925],[1477440000000,27.8272],[1477526400000,27.9476],[1477612800000,27.8997],[1477699200000,27.8467],[1477785600000,27.8467],[1477872000000,27.8467]], 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: [[1475280000000, 28.948166],[1475280000000, 28.948166],[1475366400000, 28.948166],[1475452800000, 28.948166],[1475539200000, 29.124412],[1475625600000, 28.867274],[1475712000000, 29.034622],[1475798400000, 28.956767],[1475884800000, 28.786746],[1475971200000, 28.786746],[1476057600000, 28.786746],[1476144000000, 28.823121],[1476230400000, 28.641113],[1476316800000, 28.439755],[1476403200000, 28.467874],[1476489600000, 28.467874],[1476576000000, 28.467874],[1476662400000, 28.467874],[1476748800000, 28.346040],[1476835200000, 28.211390],[1476921600000, 28.208607],[1477008000000, 28.222524],[1477094400000, 27.936526],[1477180800000, 27.936526],[1477267200000, 27.936526],[1477353600000, 27.925047],[1477440000000, 27.827225],[1477526400000, 27.947645],[1477612800000, 27.899676],[1477699200000, 27.846678],[1477785600000, 27.846678],[1477872000000, 27.846678]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });