I've noticed that when values in a pie chart are too low they
disappear both from the chart and from the legend.
When there are many values that disappear an "Other" pie element is
shown.

Is it possible to change/translate the "Other" label?
What is the limit on the number of rows that can be added? 40?

I have a pie where i show the top 10 sources of a very big source
list, so I show the top 10 items and then the "Others" as in the code
below.
Unfortunately other items get collected as "Other" so I get 2 pie
pieces tagged as "Other". Is there any way to get around this
behaviour?

Thanks in advance,
Enea

<div style="margin-left:20px;margin-bottom:30px;" id="graph-2"><script
type="text/javascript">
google.load("visualization", "1", {packages:["piechart"]});
google.setOnLoadCallback(drawTable);
function drawTable() {
  var data = new google.visualization.DataTable();
  data.addColumn('string', 'fonti');
  data.addColumn('number', 'clip');
  data.addRows(11);
  data.setValue(0, 0, 'Finanzaonline.com Forum');
  data.setValue(0, 1, 1129);
  data.setValue(1, 0, 'Sole 24 Ore, Il');
  data.setValue(1, 1, 161);
  data.setValue(2, 0, 'Yahoo! Italia');
  data.setValue(2, 1, 53);
  data.setValue(3, 0, 'Wall Street Italia');
  data.setValue(3, 1, 47);
  data.setValue(4, 0, 'Trend Online');
  data.setValue(4, 1, 42);
  data.setValue(5, 0, 'Corriere della Sera');
  data.setValue(5, 1, 24);
  data.setValue(6, 0, 'Finanza & Mercati');
  data.setValue(6, 1, 21);
  data.setValue(7, 0, 'Mutui e Mutui On Line');
  data.setValue(7, 1, 20);
  data.setValue(8, 0, 'Giornale, Il');
  data.setValue(8, 1, 19);
  data.setValue(9, 0, 'Adusbef - forum');
  data.setValue(9, 1, 19);
  data.setValue(10, 0, 'Other');
  data.setValue(10, 1, 909);
  var chart = new
google.visualization.PieChart(document.getElementById('graph-2'));
  chart.draw(data, {title: 'le fonti con maggior clip',width:
500,height:300,is3D:false,colors:
['#ffd088','#88d0ff','#d0ff88','#ffb0b0','#d088ff','#ff9900','#0099ff','#99ff00','#ff9999','#9900ff','#ff0099','#ff88d0','#aaaaaa','#00ff99','#990000','#009900','#000099'],legend:'label'});
}
</script>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to