Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/09/2012, 15:05
murel
 
Fecha de Ingreso: julio-2010
Mensajes: 26
Antigüedad: 13 años, 9 meses
Puntos: 0
Graficas con highcharts

Buenas gente:

Copié de las páginas de ejemplo de highcharts.com este código el cual en mi página no me funciona los tooltips que si funcionan en la demo. A mi me muestra X=45 Y=Crome x ejemplo. Alguien se encontró con el mismo problema? Muchas gracias
Saludos

$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Browser market shares at a specific website, 2010'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage}%</b>',
percentageDecimals: 1
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
}
}
}
},
series: [{
type: 'pie',
name: 'Browser share',
data: [
['Firefox', 45.0],
['IE', 26.8],
{
name: 'Chrome',
y: 12.8,
sliced: true,
selected: true
},
['Safari', 8.5],
['Opera', 6.2],
['Others', 0.7]
]
}]
});
});

});