Skip to content Skip to sidebar Skip to footer

Highcharts Pie Chart - Offset A Single Slice On Legend Click

I've been searching through the API docs and lots of examples, but can't seem to find what I want. I have a pie chart with a legend. When you click a slice, it becomes offset (this

Solution 1:

In the legendItemClick you should call this.slice() and then return false.

point: {
                events: {
                    legendItemClick: function () {
                        this.slice();
                        returnfalse;
                    }
                }
            },

Example: http://jsfiddle.net/95n2mm02/4/

Post a Comment for "Highcharts Pie Chart - Offset A Single Slice On Legend Click"