Hey all -

If you run the function below in the pie chart playground, you'll
notice what I call a 'tear' in the pie chart. The 3d pie chart doesn't
render properly. Is this a bug? The workaround I've come up with is to
move the large chunk of data to the last item in the list (its
currently the 2nd slice in the list), but I'd love not to have to hack
it.

      function drawVisualization() {
        // Create and populate the data table.
                   var gdata = new google.visualization.DataTable();
              gdata.addColumn('string','SoV');
              gdata.addColumn('number', 'nike');
              gdata.addColumn('number', 'adidas');
              gdata.addColumn('number', 'reebok');
              gdata.addColumn('number', 'puma');
              gdata.addColumn('number', 'new balance');
              gdata.addRows(5);

              gdata.setValue(0,0,'nike');
              gdata.setValue(0,1,20);
              gdata.setValue(1,0,'adidas');
              gdata.setValue(1,1,50);
              gdata.setValue(2,0,'puma');
              gdata.setValue(2,1,10);
              gdata.setValue(3,0,'reebok');
              gdata.setValue(3,1,5);
              gdata.setValue(4,0,'new balance');
              gdata.setValue(4,1,15);

              pie= new
google.visualization.PieChart(document.getElementById('visualization'));
              pie.draw(gdata, {
                  chartArea: {width:330,height:210,top:20,left:20},
                  hAxis: {textStyle:{fontName: 'Trebuchet MS',
fontSize:13}},
                  width: 360,
                      height: 350,
                  colors:
['#1E88C8','#FF7C30','#33CC00','#FFCC00','#A61E1E'],
                  is3D:true
              });
      }

-- 
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