Guillaume
Guillaume

Reputation: 21736

Google Pie Chart: How can I remove the white line between slices?

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.

Upvotes: 0

Views: 4246

Answers (1)

Guillaume
Guillaume

Reputation: 21736

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/

Upvotes: 6

Related Questions