dinocob dinocob - 1 year ago 165
CSS Question

How to set border on a 3d pie highchart?

I have a 3d pie chart using highchart plugin, and I want to put borders in each portion, so I put the following:

borderWidth: 4,
borderColor: "red"

plotOptions: pie:
. But I'm afraid the portions has the border with the same color which there are filled.

There is any way to do this? I don't mind if the border is white, but I need to differenciate the portions.

Here is a jsfiddle where you can try: http://jsfiddle.net/qRvn2/


$(function () {
chart: {
type: 'pie',

options3d: {
enabled: true,
alpha: 45,
beta: 0
title: {
text: 'Browser market shares at a specific website, 2014'
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
depth: 35,
borderWidth: 4,
borderColor: "red",
dataLabels: {
enabled: true,
format: '{point.name}'
series: [{
type: 'pie',
name: 'Browser share',
data: [
['Firefox', 45.0],
['IE', 26.8],
name: 'Chrome',
y: 12.8,
sliced: true,
selected: true
['Safari', 8.5],
['Opera', 6.2],
['Others', 0.7]


<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-3d.js"></script>

<div id="container" style="height: 400px"></div>

Answer Source

It is a bug, reported to our developers here: https://github.com/highslide-software/highcharts.com/issues/2985

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download