$(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: [[1496275200000,29.5228],[1496361600000,29.4734],[1496448000000,29.4793],[1496534400000,29.4793],[1496620800000,29.4793],[1496707200000,29.4793],[1496793600000,29.5484],[1496880000000,29.3946],[1496966400000,29.363],[1497052800000,29.197],[1497139200000,29.197],[1497225600000,29.197],[1497312000000,29.2539],[1497398400000,29.1588],[1497484800000,29.1446],[1497571200000,29.0395],[1497657600000,29.0587],[1497744000000,29.0587],[1497830400000,29.0587],[1497916800000,29.1433],[1498003200000,29.0445],[1498089600000,29.0085],[1498176000000,29.0681],[1498262400000,29.0846],[1498348800000,29.0846],[1498435200000,29.0846],[1498521600000,29.1272],[1498608000000,29.4132],[1498694400000,29.4132],[1498780800000,29.7868]], 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, 29.522827],[1496275200000, 29.522827],[1496361600000, 29.473382],[1496448000000, 29.479328],[1496534400000, 29.479328],[1496620800000, 29.479328],[1496707200000, 29.479328],[1496793600000, 29.548404],[1496880000000, 29.394613],[1496966400000, 29.362952],[1497052800000, 29.197031],[1497139200000, 29.197031],[1497225600000, 29.197031],[1497312000000, 29.253935],[1497398400000, 29.158829],[1497484800000, 29.144572],[1497571200000, 29.039545],[1497657600000, 29.058656],[1497744000000, 29.058656],[1497830400000, 29.058656],[1497916800000, 29.143299],[1498003200000, 29.044512],[1498089600000, 29.008509],[1498176000000, 29.068099],[1498262400000, 29.084561],[1498348800000, 29.084561],[1498435200000, 29.084561],[1498521600000, 29.127151],[1498608000000, 29.413159],[1498694400000, 29.413159],[1498780800000, 29.786782]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });