$(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: [[1472688000000,29.0336],[1472774400000,29.6661],[1472860800000,29.8103],[1472947200000,29.8103],[1473033600000,29.8103],[1473120000000,29.8836],[1473206400000,29.9602],[1473292800000,30.0301],[1473379200000,30.0901],[1473465600000,30.0573],[1473552000000,30.0573],[1473638400000,30.0573],[1473724800000,29.8956],[1473811200000,29.7213],[1473897600000,29.537],[1473984000000,29.493],[1474070400000,29.0766],[1474156800000,29.0766],[1474243200000,29.0766],[1474329600000,28.7689],[1474416000000,28.8609],[1474502400000,28.9617],[1474588800000,29.1321],[1474675200000,29.1459],[1474761600000,29.1459],[1474848000000,29.1459],[1474934400000,29.1703],[1475020800000,28.9807],[1475107200000,29.069],[1475193600000,29.0757]], 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: [[1472688000000, 29.033648],[1472688000000, 29.033648],[1472774400000, 29.666120],[1472860800000, 29.810290],[1472947200000, 29.810290],[1473033600000, 29.810290],[1473120000000, 29.883635],[1473206400000, 29.960199],[1473292800000, 30.030103],[1473379200000, 30.090063],[1473465600000, 30.057262],[1473552000000, 30.057262],[1473638400000, 30.057262],[1473724800000, 29.895636],[1473811200000, 29.721305],[1473897600000, 29.536967],[1473984000000, 29.493035],[1474070400000, 29.076554],[1474156800000, 29.076554],[1474243200000, 29.076554],[1474329600000, 28.768908],[1474416000000, 28.860901],[1474502400000, 28.961701],[1474588800000, 29.132077],[1474675200000, 29.145888],[1474761600000, 29.145888],[1474848000000, 29.145888],[1474934400000, 29.170291],[1475020800000, 28.980670],[1475107200000, 29.068982],[1475193600000, 29.075719]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });