$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1425168000000,3.33732],[1425254400000,3.33732],[1425340800000,3.22207],[1425427200000,2.98238],[1425513600000,2.86183],[1425600000000,2.7805],[1425686400000,2.75068],[1425772800000,2.75068],[1425859200000,2.75068],[1425945600000,2.75068],[1426032000000,2.56953],[1426118400000,2.51974],[1426204800000,2.49986],[1426291200000,2.5171],[1426377600000,2.5171],[1426464000000,2.5171],[1426550400000,2.51488],[1426636800000,2.56588],[1426723200000,2.69984],[1426809600000,2.65513],[1426896000000,2.66826],[1426982400000,2.66826],[1427068800000,2.66826],[1427155200000,2.68222],[1427241600000,2.73821],[1427328000000,2.77696],[1427414400000,2.7751],[1427500800000,2.76685],[1427587200000,2.76685],[1427673600000,2.76685],[1427760000000,2.73126]], 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, 3.337319],[1425168000000, 3.337319],[1425254400000, 3.337319],[1425340800000, 3.222068],[1425427200000, 2.982379],[1425513600000, 2.861828],[1425600000000, 2.780496],[1425686400000, 2.750677],[1425772800000, 2.750677],[1425859200000, 2.750677],[1425945600000, 2.750677],[1426032000000, 2.569529],[1426118400000, 2.519738],[1426204800000, 2.499863],[1426291200000, 2.517102],[1426377600000, 2.517102],[1426464000000, 2.517102],[1426550400000, 2.514877],[1426636800000, 2.565880],[1426723200000, 2.699837],[1426809600000, 2.655126],[1426896000000, 2.668256],[1426982400000, 2.668256],[1427068800000, 2.668256],[1427155200000, 2.682225],[1427241600000, 2.738211],[1427328000000, 2.776964],[1427414400000, 2.775098],[1427500800000, 2.766846],[1427587200000, 2.766846],[1427673600000, 2.766846],[1427760000000, 2.731258]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });