$(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: [[1425168000000,4.20728],[1425254400000,4.20728],[1425340800000,4.04347],[1425427200000,3.73376],[1425513600000,3.56188],[1425600000000,3.44431],[1425686400000,3.40006],[1425772800000,3.40006],[1425859200000,3.40006],[1425945600000,3.40006],[1426032000000,3.16828],[1426118400000,3.10585],[1426204800000,3.05663],[1426291200000,3.07625],[1426377600000,3.07625],[1426464000000,3.07625],[1426550400000,3.08541],[1426636800000,3.14577],[1426723200000,3.32057],[1426809600000,3.32198],[1426896000000,3.32322],[1426982400000,3.32322],[1427068800000,3.32322],[1427155200000,3.34778],[1427241600000,3.40845],[1427328000000,3.45763],[1427414400000,3.45646],[1427500800000,3.45494],[1427587200000,3.45494],[1427673600000,3.45494],[1427760000000,3.40815]], 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: [[1425168000000, 4.207277],[1425168000000, 4.207277],[1425254400000, 4.207277],[1425340800000, 4.043466],[1425427200000, 3.733758],[1425513600000, 3.561878],[1425600000000, 3.444310],[1425686400000, 3.400062],[1425772800000, 3.400062],[1425859200000, 3.400062],[1425945600000, 3.400062],[1426032000000, 3.168284],[1426118400000, 3.105849],[1426204800000, 3.056635],[1426291200000, 3.076249],[1426377600000, 3.076249],[1426464000000, 3.076249],[1426550400000, 3.085414],[1426636800000, 3.145772],[1426723200000, 3.320574],[1426809600000, 3.321978],[1426896000000, 3.323216],[1426982400000, 3.323216],[1427068800000, 3.323216],[1427155200000, 3.347778],[1427241600000, 3.408450],[1427328000000, 3.457627],[1427414400000, 3.456463],[1427500800000, 3.454945],[1427587200000, 3.454945],[1427673600000, 3.454945],[1427760000000, 3.408147]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });