$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1391212800000,7.13987],[1391299200000,7.13987],[1391385600000,7.13987],[1391472000000,7.21669],[1391558400000,7.21826],[1391644800000,7.22818],[1391731200000,7.87367],[1391817600000,7.70461],[1391904000000,7.70461],[1391990400000,7.70461],[1392076800000,7.74404],[1392163200000,7.74792],[1392249600000,7.77352],[1392336000000,7.84393],[1392422400000,7.88675],[1392508800000,7.88675],[1392595200000,7.88675],[1392681600000,7.88803],[1392768000000,7.92083],[1392854400000,8.02289],[1392940800000,7.97509],[1393027200000,8.0053],[1393113600000,8.0053],[1393200000000,8.0053],[1393286400000,8.14359],[1393372800000,8.51163],[1393459200000,8.57798],[1393545600000,8.9719]], 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, 7.139871],[1391212800000, 7.139871],[1391299200000, 7.139871],[1391385600000, 7.139871],[1391472000000, 7.216690],[1391558400000, 7.218261],[1391644800000, 7.228178],[1391731200000, 7.873666],[1391817600000, 7.704611],[1391904000000, 7.704611],[1391990400000, 7.704611],[1392076800000, 7.744044],[1392163200000, 7.747921],[1392249600000, 7.773520],[1392336000000, 7.843926],[1392422400000, 7.886751],[1392508800000, 7.886751],[1392595200000, 7.886751],[1392681600000, 7.888033],[1392768000000, 7.920833],[1392854400000, 8.022894],[1392940800000, 7.975089],[1393027200000, 8.005304],[1393113600000, 8.005304],[1393200000000, 8.005304],[1393286400000, 8.143594],[1393372800000, 8.511625],[1393459200000, 8.577984],[1393545600000, 8.971902]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });