$(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: [[1146441600000,5.58876],[1146528000000,5.58876],[1146614400000,5.58876],[1146700800000,5.59247],[1146787200000,5.59371],[1146873600000,5.59309],[1146960000000,5.59309],[1147046400000,5.59309],[1147132800000,5.59309],[1147219200000,5.59309],[1147305600000,5.59743],[1147392000000,5.59805],[1147478400000,5.59991],[1147564800000,5.59991],[1147651200000,5.59991],[1147737600000,5.60115],[1147824000000,5.6024],[1147910400000,5.60364],[1147996800000,5.60364],[1148083200000,5.60488],[1148169600000,5.60488],[1148256000000,5.60488],[1148342400000,5.60675],[1148428800000,5.60737],[1148515200000,5.60862],[1148601600000,5.60986],[1148688000000,5.61111],[1148774400000,5.61111],[1148860800000,5.61111],[1148947200000,5.61111],[1149033600000,5.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: [[1146441600000, 5.588756],[1146441600000, 5.588756],[1146528000000, 5.588756],[1146614400000, 5.588756],[1146700800000, 5.592470],[1146787200000, 5.593708],[1146873600000, 5.593089],[1146960000000, 5.593089],[1147046400000, 5.593089],[1147132800000, 5.593089],[1147219200000, 5.593089],[1147305600000, 5.597429],[1147392000000, 5.598049],[1147478400000, 5.599911],[1147564800000, 5.599911],[1147651200000, 5.599911],[1147737600000, 5.601154],[1147824000000, 5.602396],[1147910400000, 5.603640],[1147996800000, 5.603640],[1148083200000, 5.604883],[1148169600000, 5.604883],[1148256000000, 5.604883],[1148342400000, 5.606750],[1148428800000, 5.607373],[1148515200000, 5.608618],[1148601600000, 5.609864],[1148688000000, 5.611111],[1148774400000, 5.611111],[1148860800000, 5.611111],[1148947200000, 5.611111],[1149033600000, 5.612982]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });