$(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: [[1391212800000,3.12886],[1391299200000,3.12886],[1391385600000,3.12886],[1391472000000,3.1247],[1391558400000,3.12956],[1391644800000,3.13511],[1391731200000,3.40345],[1391817600000,3.35269],[1391904000000,3.35269],[1391990400000,3.35269],[1392076800000,3.37838],[1392163200000,3.3868],[1392249600000,3.36129],[1392336000000,3.41831],[1392422400000,3.43012],[1392508800000,3.43012],[1392595200000,3.43012],[1392681600000,3.43023],[1392768000000,3.45458],[1392854400000,3.49724],[1392940800000,3.50827],[1393027200000,3.54823],[1393113600000,3.54823],[1393200000000,3.54823],[1393286400000,3.59513],[1393372800000,3.75514],[1393459200000,3.78367],[1393545600000,3.94963]], 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, 3.128863],[1391212800000, 3.128863],[1391299200000, 3.128863],[1391385600000, 3.128863],[1391472000000, 3.124696],[1391558400000, 3.129558],[1391644800000, 3.135114],[1391731200000, 3.403454],[1391817600000, 3.352693],[1391904000000, 3.352693],[1391990400000, 3.352693],[1392076800000, 3.378375],[1392163200000, 3.386798],[1392249600000, 3.361291],[1392336000000, 3.418314],[1392422400000, 3.430124],[1392508800000, 3.430124],[1392595200000, 3.430124],[1392681600000, 3.430225],[1392768000000, 3.454582],[1392854400000, 3.497236],[1392940800000, 3.508272],[1393027200000, 3.548227],[1393113600000, 3.548227],[1393200000000, 3.548227],[1393286400000, 3.595135],[1393372800000, 3.755143],[1393459200000, 3.783674],[1393545600000, 3.949633]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });