The "setValue" method accepts 3 parameters: row, column and value. What you have done is to set the 5-8 rows to be at the fifth row. You souls have written it like this (in regard to rows 5-8):
data.setValue(4, 0, 'Sleep1'); data.setValue(4, 1, 70); > data.setValue(5, 0, 'Sleep2'); > data.setValue(5, 1, 70); data.setValue(6, 0, 'Sleep3'); > data.setValue(6, 1, 70); > data.setValue(7, 0, 'Sleep4'); > data.setValue(7, 1, 70); Hope that it helped and you understand how the setValue method work On 25 באוק 2011, at 00:15, Jouriy LYSENKO <[email protected]> wrote: It work : var data = new google.visualization.DataTable(); data.addColumn('string', 'Task'); data.addColumn('number', 'Hours per Day'); data.addRows(9);// i change but not warking data.setValue(0, 0, 'Work_876'); data.setValue(0, 1, 11); data.setValue(1, 0, 'Eat'); data.setValue(1, 1, 20); data.setValue(2, 0, 'Commute'); data.setValue(2, 1, 20); data.setValue(3, 0, 'Watch TV'); data.setValue(3, 1, 20); data.setValue(4, 0, 'Sleep1'); data.setValue(4, 1, 70); data.setValue(4, 0, 'Sleep2'); data.setValue(4, 1, 70); data.setValue(4, 0, 'Sleep3'); data.setValue(4, 1, 70); data.setValue(4, 0, 'Sleep4'); data.setValue(4, 1, 70); data.setValue(5, 0, 'Sleep5'); data.setValue(5, 1, 70); data.setValue(6, 0, 'Sleep6'); data.setValue(6, 1, 70); data.setValue(7, 0, 'Sleep7'); data.setValue(7, 1, 70); data.setValue(8, 0, 'Sleep8'); data.setValue(8, 1, 70); 2011/10/24 Mnasoor M <[email protected]> > hi > > i wan to create google pie chart more than 5 part , in by default it > give only 5 parts , > please help how to create morethan 5 part pie chart > > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Task'); > data.addColumn('number', 'Hours per Day'); > data.addRows(8);// i change but not warking > data.setValue(0, 0, 'Work_876'); > data.setValue(0, 1, 11); > data.setValue(1, 0, 'Eat'); > data.setValue(1, 1, 20); > data.setValue(2, 0, 'Commute'); > data.setValue(2, 1, 20); > data.setValue(3, 0, 'Watch TV'); > data.setValue(3, 1, 20); > data.setValue(4, 0, 'Sleep1'); > data.setValue(4, 1, 70); > data.setValue(4, 0, 'Sleep2'); > data.setValue(4, 1, 70); > data.setValue(4, 0, 'Sleep3'); > data.setValue(4, 1, 70); > data.setValue(4, 0, 'Sleep4'); > data.setValue(4, 1, 70); > ================================================ > > data.addRows(8); > > i did changed but not wark > > -- > 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. > > -- Youri LYSENKO ••••••••••••••••••••• Portable : +33671383176 Fax : +33826761768 Émail : [email protected] -- 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. -- 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.
