Craig, thanks for the information. Even, i noticed that when i tried with a value of 56 for the 'Processed' status and i saw the result in the pie chart. Anyway, i tried pie chart for the same values with Jasper Reports and it does show up with the slice even for a value of 1 :)
Thanks, Ravi P On Fri, Dec 5, 2008 at 7:16 PM, Craig Anslow <[EMAIL PROTECTED]> wrote: > Hi Ravi, > > I did some testing and it looks like if a value is less than about 1.36% it > doesn't show any values for that data value in the pie chart. Try > experimenting with some different numbers and you will be able to see what I > mean. > For example use two values. Try 71 and 1 which works and 72 and 1 doesn't. > > Perhaps Google have some good reason for making values less than this > number not appear in a chart. I wonder if it is the same for the other > charts. > > I hope that helps. > > Cheers Craig > http://www.mcs.vuw.ac.nz/~craig <http://www.mcs.vuw.ac.nz/%7Ecraig> > > > On Sat, Dec 6, 2008 at 6:00 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > >> >> Hi, I am using google API's to display the status of the shipments in >> Pie chart representation and it works perfect except, in the case of 1 >> specific scenario. >> Here is my function body - data setting to the Pie chart >> function drawChart() { >> var data = new google.visualization.DataTable(); >> data.addColumn('string', 'Ship Status'); >> data.addColumn('number', 'Number of Shipments'); >> data.addRows(4); >> data.setValue(0, 0, 'In Progress'); >> data.setValue(0, 1, 2000); >> data.setValue(1, 0, 'Sent To Bid'); >> data.setValue(1, 1, 2000); >> data.setValue(2, 0, 'Processed'); >> data.setValue(2, 1, 5); >> data.setValue(3, 0, 'Shipped'); >> data.setValue(3, 1, 1); >> >> >> var chart = new google.visualization.PieChart >> (document.getElementById('chart_div')); >> chart.draw(data, {width: 400, height: 240, is3D: true, title: >> 'My Daily Activities'}); >> } >> >> as you can see that , the data of Ship Status for 'In Process' and >> 'Sent To Bid' is huge compare to 'Processed' & 'Shipped' and when i >> run this on web browser, i am seeing the pie chart with 2 divisions >> 'In Progress' as 50% & 'Sent To Bid' 50% ,only and i don't see any >> thing for the rest, even though each does have value 1. >> If some body faced this problem and got solution or some body has >> knowledge on this please , help me with a solution. >> >> Thanks >> Ravi P >> >> > > > > -- Thanks, Ravi Porandla --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
