$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1491004800000,3.88402],[1491091200000,3.88402],[1491177600000,3.88402],[1491264000000,3.8738],[1491350400000,3.88362],[1491436800000,3.90003],[1491523200000,3.88772],[1491609600000,3.85586],[1491696000000,3.85586],[1491782400000,3.85586],[1491868800000,3.8312],[1491955200000,3.83887],[1492041600000,3.83246],[1492128000000,3.8395],[1492214400000,3.83204],[1492300800000,3.83204],[1492387200000,3.83204],[1492473600000,3.83204],[1492560000000,3.85526],[1492646400000,3.86212],[1492732800000,3.86525],[1492819200000,3.84552],[1492905600000,3.84552],[1492992000000,3.84552],[1493078400000,3.88972],[1493164800000,3.8987],[1493251200000,3.89317],[1493337600000,3.88383],[1493424000000,3.90292],[1493510400000,3.90292]], 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: [[1491004800000, 3.884019],[1491004800000, 3.884019],[1491091200000, 3.884019],[1491177600000, 3.884019],[1491264000000, 3.873796],[1491350400000, 3.883616],[1491436800000, 3.900026],[1491523200000, 3.887721],[1491609600000, 3.855863],[1491696000000, 3.855863],[1491782400000, 3.855863],[1491868800000, 3.831204],[1491955200000, 3.838870],[1492041600000, 3.832464],[1492128000000, 3.839499],[1492214400000, 3.832045],[1492300800000, 3.832045],[1492387200000, 3.832045],[1492473600000, 3.832045],[1492560000000, 3.855257],[1492646400000, 3.862119],[1492732800000, 3.865249],[1492819200000, 3.845517],[1492905600000, 3.845517],[1492992000000, 3.845517],[1493078400000, 3.889720],[1493164800000, 3.898695],[1493251200000, 3.893173],[1493337600000, 3.883829],[1493424000000, 3.902921],[1493510400000, 3.902921]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });