$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1146441600000,1.83364],[1146528000000,1.83364],[1146614400000,1.83364],[1146700800000,1.84607],[1146787200000,1.84168],[1146873600000,1.85572],[1146960000000,1.85572],[1147046400000,1.85572],[1147132800000,1.85572],[1147219200000,1.85572],[1147305600000,1.86903],[1147392000000,1.85982],[1147478400000,1.88878],[1147564800000,1.88878],[1147651200000,1.88878],[1147737600000,1.87591],[1147824000000,1.87459],[1147910400000,1.8841],[1147996800000,1.86772],[1148083200000,1.86728],[1148169600000,1.86728],[1148256000000,1.86728],[1148342400000,1.86523],[1148428800000,1.8781],[1148515200000,1.87956],[1148601600000,1.86552],[1148688000000,1.87166],[1148774400000,1.87166],[1148860800000,1.87166],[1148947200000,1.86596],[1149033600000,1.87781]], 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, 1.833638],[1146441600000, 1.833638],[1146528000000, 1.833638],[1146614400000, 1.833638],[1146700800000, 1.846070],[1146787200000, 1.841682],[1146873600000, 1.855723],[1146960000000, 1.855723],[1147046400000, 1.855723],[1147132800000, 1.855723],[1147219200000, 1.855723],[1147305600000, 1.869032],[1147392000000, 1.859818],[1147478400000, 1.888777],[1147564800000, 1.888777],[1147651200000, 1.888777],[1147737600000, 1.875907],[1147824000000, 1.874590],[1147910400000, 1.884097],[1147996800000, 1.867716],[1148083200000, 1.867277],[1148169600000, 1.867277],[1148256000000, 1.867277],[1148342400000, 1.865230],[1148428800000, 1.878100],[1148515200000, 1.879563],[1148601600000, 1.865522],[1148688000000, 1.871665],[1148774400000, 1.871665],[1148860800000, 1.871665],[1148947200000, 1.865961],[1149033600000, 1.877808]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });