$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1391212800000,0.596942],[1391299200000,0.596942],[1391385600000,0.596942],[1391472000000,0.596404],[1391558400000,0.595683],[1391644800000,0.59462],[1391731200000,0.646795],[1391817600000,0.632323],[1391904000000,0.632323],[1391990400000,0.632323],[1392076800000,0.634421],[1392163200000,0.634999],[1392249600000,0.635154],[1392336000000,0.640983],[1392422400000,0.64112],[1392508800000,0.64112],[1392595200000,0.64112],[1392681600000,0.640719],[1392768000000,0.643603],[1392854400000,0.650399],[1392940800000,0.653805],[1393027200000,0.660772],[1393113600000,0.660772],[1393200000000,0.660772],[1393286400000,0.667876],[1393372800000,0.695476],[1393459200000,0.701589],[1393545600000,0.734325]], 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: [[1391212800000, 0.596942],[1391212800000, 0.596942],[1391299200000, 0.596942],[1391385600000, 0.596942],[1391472000000, 0.596404],[1391558400000, 0.595683],[1391644800000, 0.594620],[1391731200000, 0.646795],[1391817600000, 0.632323],[1391904000000, 0.632323],[1391990400000, 0.632323],[1392076800000, 0.634421],[1392163200000, 0.634999],[1392249600000, 0.635154],[1392336000000, 0.640983],[1392422400000, 0.641120],[1392508800000, 0.641120],[1392595200000, 0.641120],[1392681600000, 0.640719],[1392768000000, 0.643603],[1392854400000, 0.650399],[1392940800000, 0.653805],[1393027200000, 0.660772],[1393113600000, 0.660772],[1393200000000, 0.660772],[1393286400000, 0.667876],[1393372800000, 0.695476],[1393459200000, 0.701589],[1393545600000, 0.734325]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });