Hey Indeed there is a bug introduced when a value is exactly 1/720 of the sum as in the case above (2 / 1140 = 1/ 720). The best workaround till we fix the bug is to change the visibility threshold by setting the option: sliceVisibilityThreshold:1/719
for example We will of course fix the bug soon. Thanks for pointing this out for us Badtnik On Sat, Jun 26, 2010 at 7:01 PM, Seb <sebastien.du...@gmail.com> wrote: > Hello, > > I have a problem with the interactive Pie Chart, by using some values, > the graph is not displayed and the error message "Cannot read property > 'label' of null" is displayed. > > The problem appears when I use the values : 1438 and 2, I have the > same problem with the multiple of this couple of values = 2816 and 4, > 5752 and 8 .... > > Is ti a bug of the pie chart ? because it's work with other values... > > You can reproduce this problem by pasting the code below in the : > http://code.google.com/apis/ajax/playground/?type=visualization#pie_chart > > Thanks a lot for your help. > > ------------------------------------------------ > function drawVisualization() { > // Create and populate the data table. > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Task'); > data.addColumn('number', 'Hours per Day'); > data.addRows(2); > data.setValue(0, 0, 'Serie1'); > data.setValue(0, 1, 1438); > data.setValue(1, 0, 'Serie2'); > data.setValue(1, 1, 2); > > // Create and draw the visualization. > new > google.visualization.PieChart(document.getElementById('visualization')). > draw(data, {title:"So, how was your day?"}); > } > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > google-visualization-...@googlegroups.com. > To unsubscribe from this group, send email to > google-visualization-api+unsubscr...@googlegroups.com<google-visualization-api%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to google-visualization-...@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.