var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderTo: 'grafico-rendimenti', defaultSeriesType: 'column' }, title: { text: 'Garantito' }, xAxis: { title: { text: 'Mesi' }, categories: [ '5 anni' , '3 anni' , '1 anno' , 'Da inizio anno' ] }, yAxis: { title: { text: 'Rendimento Netto (%)' }, plotLines: [{ value: 0, width: 1, color: '#808080' }] }, plotOptions: { series: { groupPadding: 0 } }, tooltip: { formatter: function() { return '' + this.series.name + '
' + this.x + ': ' + this.y + ' %'; } }, legend: { enabled: false }, series: [ { name: 'Garantito', color: '#CCCCCC', data: [ 11.888 , 4.150 , 1.626 , 1.060 ], borderColor: '#CCCCCC' } ], credits: { enabled: false } }); });