0

Similar to this question, but for Google Pie Charts:

How can I remove the white lines between the slices on a Google Pie Chart:

enter image description here

On the image above, I want to remove the white space highlighted by the green arrow.

Community
  • 1
  • 1
Guillaume
  • 21,685
  • 6
  • 63
  • 95
  • possible duplicate of [Google pie charts: remove white gap between segments](http://stackoverflow.com/questions/15410695/google-pie-charts-remove-white-gap-between-segments) – Anto Jurković Mar 06 '14 at 21:39
  • 1
    @AntoJurković yes! same question, same answer. I will edit the other question and its tags to allow it to show up more easily on the search query I used before asking. – Guillaume Mar 07 '14 at 09:56

1 Answers1

6

Use the configuration option pieSliceBorderColor with the value transparent (see documentation here).

  new google.visualization.PieChart(document.getElementById('visualization')).
  draw(data, {
                pieSliceBorderColor : "transparent", // Add this line
                title : "So, how was your day?"
              }
      );

Before:

enter image description here

After:

enter image description here

Fiddle with it: http://jsfiddle.net/PWc43/

Guillaume
  • 21,685
  • 6
  • 63
  • 95