$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[965088000000,5.4387],[965174400000,5.4387],[965260800000,5.4386],[965347200000,5.4386],[965433600000,5.4385],[965520000000,5.4385],[965606400000,5.4385],[965692800000,5.4386],[965779200000,5.4385],[965865600000,5.4385],[965952000000,5.4385],[966038400000,5.4385],[966124800000,5.4385],[966211200000,5.4385],[966297600000,5.4385],[966384000000,5.4384],[966470400000,5.4384],[966556800000,5.4384],[966643200000,5.4384],[966729600000,5.4384],[966816000000,5.4384],[966902400000,5.4384],[966988800000,5.4385],[967075200000,5.4383],[967161600000,5.4383],[967248000000,5.4383],[967334400000,5.4383],[967420800000,5.4383],[967507200000,5.4382],[967593600000,5.4385],[967680000000,5.4385]], 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: [[965088000000, 5.438700],[965088000000, 5.438700],[965174400000, 5.438700],[965260800000, 5.438600],[965347200000, 5.438600],[965433600000, 5.438500],[965520000000, 5.438500],[965606400000, 5.438500],[965692800000, 5.438600],[965779200000, 5.438500],[965865600000, 5.438500],[965952000000, 5.438500],[966038400000, 5.438500],[966124800000, 5.438500],[966211200000, 5.438500],[966297600000, 5.438500],[966384000000, 5.438400],[966470400000, 5.438400],[966556800000, 5.438400],[966643200000, 5.438400],[966729600000, 5.438400],[966816000000, 5.438400],[966902400000, 5.438400],[966988800000, 5.438500],[967075200000, 5.438300],[967161600000, 5.438300],[967248000000, 5.438300],[967334400000, 5.438300],[967420800000, 5.438300],[967507200000, 5.438200],[967593600000, 5.438500],[967680000000, 5.438500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });