$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1425168000000,21.8845],[1425254400000,21.8845],[1425340800000,21.0256],[1425427200000,19.3072],[1425513600000,18.5804],[1425600000000,18.1002],[1425686400000,17.8421],[1425772800000,17.8421],[1425859200000,17.8421],[1425945600000,17.8421],[1426032000000,16.8091],[1426118400000,16.4911],[1426204800000,16.4039],[1426291200000,16.659],[1426377600000,16.659],[1426464000000,16.659],[1426550400000,16.678],[1426636800000,17.0226],[1426723200000,17.8066],[1426809600000,17.8253],[1426896000000,17.7292],[1426982400000,17.7292],[1427068800000,17.7292],[1427155200000,17.8341],[1427241600000,18.232],[1427328000000,18.6339],[1427414400000,18.539],[1427500800000,18.4423],[1427587200000,18.4423],[1427673600000,18.4423],[1427760000000,18.2563]], 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, 21.884463],[1425168000000, 21.884463],[1425254400000, 21.884463],[1425340800000, 21.025575],[1425427200000, 19.307249],[1425513600000, 18.580450],[1425600000000, 18.100164],[1425686400000, 17.842125],[1425772800000, 17.842125],[1425859200000, 17.842125],[1425945600000, 17.842125],[1426032000000, 16.809073],[1426118400000, 16.491052],[1426204800000, 16.403875],[1426291200000, 16.659011],[1426377600000, 16.659011],[1426464000000, 16.659011],[1426550400000, 16.678005],[1426636800000, 17.022553],[1426723200000, 17.806621],[1426809600000, 17.825312],[1426896000000, 17.729212],[1426982400000, 17.729212],[1427068800000, 17.729212],[1427155200000, 17.834074],[1427241600000, 18.231952],[1427328000000, 18.633922],[1427414400000, 18.539050],[1427500800000, 18.442345],[1427587200000, 18.442345],[1427673600000, 18.442345],[1427760000000, 18.256323]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });