$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1425168000000,22.2644],[1425254400000,22.2644],[1425340800000,21.5709],[1425427200000,19.8689],[1425513600000,18.9884],[1425600000000,18.4499],[1425686400000,18.4058],[1425772800000,18.4058],[1425859200000,18.4058],[1425945600000,18.4058],[1426032000000,17.2627],[1426118400000,17.06],[1426204800000,16.9742],[1426291200000,17.0795],[1426377600000,17.0795],[1426464000000,17.0795],[1426550400000,17.0968],[1426636800000,17.4061],[1426723200000,18.2379],[1426809600000,18.2426],[1426896000000,18.2358],[1426982400000,18.2358],[1427068800000,18.2358],[1427155200000,18.269],[1427241600000,18.5935],[1427328000000,18.8988],[1427414400000,18.8284],[1427500800000,18.8976],[1427587200000,18.8976],[1427673600000,18.8976],[1427760000000,18.7403]], 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, 22.264401],[1425168000000, 22.264401],[1425254400000, 22.264401],[1425340800000, 21.570933],[1425427200000, 19.868915],[1425513600000, 18.988446],[1425600000000, 18.449895],[1425686400000, 18.405766],[1425772800000, 18.405766],[1425859200000, 18.405766],[1425945600000, 18.405766],[1426032000000, 17.262674],[1426118400000, 17.059961],[1426204800000, 16.974200],[1426291200000, 17.079455],[1426377600000, 17.079455],[1426464000000, 17.079455],[1426550400000, 17.096751],[1426636800000, 17.406075],[1426723200000, 18.237860],[1426809600000, 18.242631],[1426896000000, 18.235836],[1426982400000, 18.235836],[1427068800000, 18.235836],[1427155200000, 18.268988],[1427241600000, 18.593470],[1427328000000, 18.898775],[1427414400000, 18.828406],[1427500800000, 18.897562],[1427587200000, 18.897562],[1427673600000, 18.897562],[1427760000000, 18.740290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });