$(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: [[1496275200000,3.96823],[1496361600000,3.9618],[1496448000000,3.9627],[1496534400000,3.9627],[1496620800000,3.9627],[1496707200000,3.9627],[1496793600000,3.97241],[1496880000000,3.95158],[1496966400000,3.94753],[1497052800000,3.92549],[1497139200000,3.92549],[1497225600000,3.92549],[1497312000000,3.93372],[1497398400000,3.92104],[1497484800000,3.91923],[1497571200000,3.90526],[1497657600000,3.90778],[1497744000000,3.90778],[1497830400000,3.90778],[1497916800000,3.91864],[1498003200000,3.90499],[1498089600000,3.89884],[1498176000000,3.90763],[1498262400000,3.91069],[1498348800000,3.91069],[1498435200000,3.91069],[1498521600000,3.91683],[1498608000000,3.95567],[1498694400000,3.95567],[1498780800000,4.00538]], 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, 3.968229],[1496275200000, 3.968229],[1496361600000, 3.961796],[1496448000000, 3.962701],[1496534400000, 3.962701],[1496620800000, 3.962701],[1496707200000, 3.962701],[1496793600000, 3.972414],[1496880000000, 3.951579],[1496966400000, 3.947535],[1497052800000, 3.925493],[1497139200000, 3.925493],[1497225600000, 3.925493],[1497312000000, 3.933725],[1497398400000, 3.921042],[1497484800000, 3.919230],[1497571200000, 3.905264],[1497657600000, 3.907782],[1497744000000, 3.907782],[1497830400000, 3.907782],[1497916800000, 3.918637],[1498003200000, 3.904987],[1498089600000, 3.898836],[1498176000000, 3.907633],[1498262400000, 3.910687],[1498348800000, 3.910687],[1498435200000, 3.910687],[1498521600000, 3.916835],[1498608000000, 3.955668],[1498694400000, 3.955668],[1498780800000, 4.005376]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });