You can see all configuration options here: http://code.google.com/apis/visualization/documentation/gallery/imagepiechart.html#Configuration_Options <http://code.google.com/apis/visualization/documentation/gallery/imagepiechart.html#Configuration_Options>Look for the 'colors' option.
On Tue, Dec 7, 2010 at 3:13 PM, ishtiaq ahmed <[email protected]> wrote: > Hi all > im using google api's image pie chart in my website > my cuurenct code is like > "google.load('visualization', '1', {packages:['imagepiechart']}); > google.setOnLoadCallback(drawChart); > function drawChart() { > var data = new google.visualization.DataTable(); > data.addColumn('string', 'stars'); > data.addColumn('number', 'rating'); > data.addRows([ > ['1 star', 11], > ['2 star', 2], > ['3 star', 6], > ['4 star', 10], > ['5 star', 20] > ]); > var chart = new > google.visualization.ImagePieChart(document.getElementById('chart_div')); > chart.draw(data, {width: 230, height: 200,is3D:true, title: > 'Start Ratings'}); > " > Now i want to have custome colors .e.g Red color for 1 start > rating,Green color for 2 star rating. > How can i specify my own custom colors . > Please help. > > -- > 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]<google-visualization-api%[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.
