$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1425168000000,27.7631],[1425254400000,27.7631],[1425340800000,26.8581],[1425427200000,24.8207],[1425513600000,23.7713],[1425600000000,23.0906],[1425686400000,22.897],[1425772800000,22.897],[1425859200000,22.897],[1425945600000,22.897],[1426032000000,21.7357],[1426118400000,21.5529],[1426204800000,21.5539],[1426291200000,21.6161],[1426377600000,21.6161],[1426464000000,21.6161],[1426550400000,21.7704],[1426636800000,22.2469],[1426723200000,23.2968],[1426809600000,23.394],[1426896000000,23.1906],[1426982400000,23.1906],[1427068800000,23.1906],[1427155200000,23.1499],[1427241600000,23.2878],[1427328000000,23.557],[1427414400000,23.5008],[1427500800000,23.513],[1427587200000,23.513],[1427673600000,23.513],[1427760000000,23.4426]], 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, 27.763120],[1425168000000, 27.763120],[1425254400000, 27.763120],[1425340800000, 26.858114],[1425427200000, 24.820658],[1425513600000, 23.771263],[1425600000000, 23.090564],[1425686400000, 22.897045],[1425772800000, 22.897045],[1425859200000, 22.897045],[1425945600000, 22.897045],[1426032000000, 21.735710],[1426118400000, 21.552936],[1426204800000, 21.553929],[1426291200000, 21.616059],[1426377600000, 21.616059],[1426464000000, 21.616059],[1426550400000, 21.770381],[1426636800000, 22.246866],[1426723200000, 23.296787],[1426809600000, 23.394039],[1426896000000, 23.190613],[1426982400000, 23.190613],[1427068800000, 23.190613],[1427155200000, 23.149873],[1427241600000, 23.287844],[1427328000000, 23.557021],[1427414400000, 23.500799],[1427500800000, 23.513024],[1427587200000, 23.513024],[1427673600000, 23.513024],[1427760000000, 23.442625]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });