$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1228089600000,8.51306],[1228176000000,8.83037],[1228262400000,8.94341],[1228348800000,9.12359],[1228435200000,9.09713],[1228521600000,9.0974],[1228608000000,9.0974],[1228694400000,9.0974],[1228780800000,9.14574],[1228867200000,9.1843],[1228953600000,9.25954],[1229040000000,9.27962],[1229126400000,9.27184],[1229212800000,9.27184],[1229299200000,9.27184],[1229385600000,9.50783],[1229472000000,9.62595],[1229558400000,9.80648],[1229644800000,9.83866],[1229731200000,9.83252],[1229817600000,9.83252],[1229904000000,9.83252],[1229990400000,9.82394],[1230076800000,9.71322],[1230163200000,9.71079],[1230249600000,9.71685],[1230336000000,9.61178],[1230422400000,9.61178],[1230508800000,9.61178],[1230595200000,9.61899],[1230681600000,9.61298]], 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: [[1228089600000, 8.513059],[1228089600000, 8.513059],[1228176000000, 8.830366],[1228262400000, 8.943415],[1228348800000, 9.123594],[1228435200000, 9.097133],[1228521600000, 9.097404],[1228608000000, 9.097404],[1228694400000, 9.097404],[1228780800000, 9.145735],[1228867200000, 9.184302],[1228953600000, 9.259539],[1229040000000, 9.279623],[1229126400000, 9.271836],[1229212800000, 9.271836],[1229299200000, 9.271836],[1229385600000, 9.507826],[1229472000000, 9.625949],[1229558400000, 9.806484],[1229644800000, 9.838661],[1229731200000, 9.832522],[1229817600000, 9.832522],[1229904000000, 9.832522],[1229990400000, 9.823940],[1230076800000, 9.713217],[1230163200000, 9.710795],[1230249600000, 9.716852],[1230336000000, 9.611784],[1230422400000, 9.611784],[1230508800000, 9.611784],[1230595200000, 9.618988],[1230681600000, 9.612984]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });