$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1425168000000,39.2621],[1425254400000,39.2621],[1425340800000,37.8],[1425427200000,34.918],[1425513600000,33.3633],[1425600000000,32.3765],[1425686400000,31.9944],[1425772800000,31.9944],[1425859200000,31.9944],[1425945600000,31.9944],[1426032000000,30.1481],[1426118400000,29.7563],[1426204800000,29.6406],[1426291200000,29.7516],[1426377600000,29.7516],[1426464000000,29.7516],[1426550400000,29.8452],[1426636800000,30.4603],[1426723200000,31.9752],[1426809600000,32.0663],[1426896000000,31.9607],[1426982400000,31.9607],[1427068800000,31.9607],[1427155200000,31.8818],[1427241600000,32.309],[1427328000000,32.7769],[1427414400000,32.705],[1427500800000,32.7465],[1427587200000,32.7465],[1427673600000,32.7465],[1427760000000,32.4973]], 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, 39.262080],[1425168000000, 39.262080],[1425254400000, 39.262080],[1425340800000, 37.799953],[1425427200000, 34.918001],[1425513600000, 33.363317],[1425600000000, 32.376500],[1425686400000, 31.994351],[1425772800000, 31.994351],[1425859200000, 31.994351],[1425945600000, 31.994351],[1426032000000, 30.148079],[1426118400000, 29.756261],[1426204800000, 29.640595],[1426291200000, 29.751647],[1426377600000, 29.751647],[1426464000000, 29.751647],[1426550400000, 29.845171],[1426636800000, 30.460304],[1426723200000, 31.975211],[1426809600000, 32.066308],[1426896000000, 31.960734],[1426982400000, 31.960734],[1427068800000, 31.960734],[1427155200000, 31.881783],[1427241600000, 32.309047],[1427328000000, 32.776855],[1427414400000, 32.705045],[1427500800000, 32.746485],[1427587200000, 32.746485],[1427673600000, 32.746485],[1427760000000, 32.497321]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });