$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1146441600000,3.81397],[1146528000000,3.81397],[1146614400000,3.81397],[1146700800000,3.83636],[1146787200000,3.81347],[1146873600000,3.82648],[1146960000000,3.82648],[1147046400000,3.82648],[1147132800000,3.82648],[1147219200000,3.82648],[1147305600000,3.75765],[1147392000000,3.71082],[1147478400000,3.59712],[1147564800000,3.59712],[1147651200000,3.59712],[1147737600000,3.43487],[1147824000000,3.48363],[1147910400000,3.52024],[1147996800000,3.36579],[1148083200000,3.41526],[1148169600000,3.41526],[1148256000000,3.41526],[1148342400000,3.32229],[1148428800000,3.353],[1148515200000,3.26611],[1148601600000,3.25811],[1148688000000,3.27463],[1148774400000,3.27463],[1148860800000,3.27463],[1148947200000,3.2947],[1149033600000,3.2606]], 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, 3.813967],[1146441600000, 3.813967],[1146528000000, 3.813967],[1146614400000, 3.813967],[1146700800000, 3.836359],[1146787200000, 3.813469],[1146873600000, 3.826480],[1146960000000, 3.826480],[1147046400000, 3.826480],[1147132800000, 3.826480],[1147219200000, 3.826480],[1147305600000, 3.757654],[1147392000000, 3.710823],[1147478400000, 3.597115],[1147564800000, 3.597115],[1147651200000, 3.597115],[1147737600000, 3.434868],[1147824000000, 3.483630],[1147910400000, 3.520244],[1147996800000, 3.365788],[1148083200000, 3.415264],[1148169600000, 3.415264],[1148256000000, 3.415264],[1148342400000, 3.322293],[1148428800000, 3.353002],[1148515200000, 3.266107],[1148601600000, 3.258106],[1148688000000, 3.274631],[1148774400000, 3.274631],[1148860800000, 3.274631],[1148947200000, 3.294702],[1149033600000, 3.260596]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });