Reddy
Reddy

Reputation: 1497

Highcharts {Pie} - Remove slice pieces out onclick

How can I remove slice out of pie chart pieces?

Online Demo

Reference

enter image description here

Upvotes: 1

Views: 1249

Answers (1)

Emre Bolat
Emre Bolat

Reputation: 4552

You can control this animation with plotOptions.pie.slicedOffset property.

So, just by setting slicedOffset: 0, you will get desired behavior.

series: [{
        states: {
          hover: {
            enabled: false,
          }
        },
        name: 'Brands',
        slicedOffset: 0,
        colorByPoint: true,
        data: [{
          name: 'IE',
          y: 56.33
        }, {
          name: 'Chrome',
          y: 24.03,
          sliced: true,
          selected: true
        }, {
          name: 'Firefox',
          y: 10.38
        },  {
          name: 'Others',
          y: 0.2
        }]
      }]

Live example: jsFiddle.

Upvotes: 1

Related Questions