$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1146441600000,1.63398],[1146528000000,1.63398],[1146614400000,1.63398],[1146700800000,1.6708],[1146787200000,1.66504],[1146873600000,1.67958],[1146960000000,1.67958],[1147046400000,1.67958],[1147132800000,1.67958],[1147219200000,1.67958],[1147305600000,1.6821],[1147392000000,1.67972],[1147478400000,1.6822],[1147564800000,1.6822],[1147651200000,1.6822],[1147737600000,1.64611],[1147824000000,1.65497],[1147910400000,1.67368],[1147996800000,1.62419],[1148083200000,1.63547],[1148169600000,1.63547],[1148256000000,1.63547],[1148342400000,1.6253],[1148428800000,1.64566],[1148515200000,1.63874],[1148601600000,1.62975],[1148688000000,1.6436],[1148774400000,1.6436],[1148860800000,1.6436],[1148947200000,1.64261],[1149033600000,1.64883]], 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.633981],[1146441600000, 1.633981],[1146528000000, 1.633981],[1146614400000, 1.633981],[1146700800000, 1.670802],[1146787200000, 1.665042],[1146873600000, 1.679583],[1146960000000, 1.679583],[1147046400000, 1.679583],[1147132800000, 1.679583],[1147219200000, 1.679583],[1147305600000, 1.682105],[1147392000000, 1.679723],[1147478400000, 1.682204],[1147564800000, 1.682204],[1147651200000, 1.682204],[1147737600000, 1.646114],[1147824000000, 1.654969],[1147910400000, 1.673676],[1147996800000, 1.624191],[1148083200000, 1.635466],[1148169600000, 1.635466],[1148256000000, 1.635466],[1148342400000, 1.625303],[1148428800000, 1.645655],[1148515200000, 1.638744],[1148601600000, 1.629754],[1148688000000, 1.643604],[1148774400000, 1.643604],[1148860800000, 1.643604],[1148947200000, 1.642605],[1149033600000, 1.648830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });