$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1498867200000,0.43821],[1498953600000,0.43821],[1499040000000,0.43821],[1499126400000,0.44081],[1499212800000,0.43926],[1499299200000,0.4384],[1499385600000,0.43259],[1499472000000,0.43099],[1499558400000,0.43099],[1499644800000,0.43099],[1499731200000,0.43124],[1499817600000,0.4276],[1499904000000,0.42741],[1499990400000,0.43149],[1500076800000,0.43449],[1500163200000,0.43449],[1500249600000,0.43449],[1500336000000,0.43959],[1500422400000,0.43675],[1500508800000,0.43794],[1500595200000,0.43885],[1500681600000,0.43931],[1500768000000,0.43931],[1500854400000,0.43931],[1500940800000,0.43285],[1501027200000,0.43204],[1501113600000,0.43206],[1501200000000,0.43596],[1501286400000,0.43524],[1501372800000,0.43524],[1501459200000,0.43524]], 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: [[1498867200000, 0.438210],[1498867200000, 0.438210],[1498953600000, 0.438210],[1499040000000, 0.438210],[1499126400000, 0.440810],[1499212800000, 0.439260],[1499299200000, 0.438400],[1499385600000, 0.432590],[1499472000000, 0.430990],[1499558400000, 0.430990],[1499644800000, 0.430990],[1499731200000, 0.431240],[1499817600000, 0.427600],[1499904000000, 0.427410],[1499990400000, 0.431490],[1500076800000, 0.434490],[1500163200000, 0.434490],[1500249600000, 0.434490],[1500336000000, 0.439590],[1500422400000, 0.436750],[1500508800000, 0.437940],[1500595200000, 0.438850],[1500681600000, 0.439310],[1500768000000, 0.439310],[1500854400000, 0.439310],[1500940800000, 0.432850],[1501027200000, 0.432040],[1501113600000, 0.432060],[1501200000000, 0.435960],[1501286400000, 0.435240],[1501372800000, 0.435240],[1501459200000, 0.435240]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });