# Exploding Pie/Donut Chart Series On Click

## Environment

| Product         | Version |
| --------------- | ------- |
| Chart for React | Current |

## Description

How can I make the Pie or Donut Chart series explode when clicking them?

## Solution

To achieve click-to-expand functionality in a Vue pie chart you must:

1. Handle the [`seriesClick`](https://www.telerik.com/kendo-vue-ui/components/charts/api/chartprops#onseriesclick) event:

```html
<Chart @seriesclick="onSeriesClick">
</Chart>
```

2. Within the event handler function, toggle the [`explodeField`](https://www.telerik.com/kendo-vue-ui/components/charts/api/chartseriesitemprops#explodefield) property and update the Chart data by reference to re-render the Chart.

```JavaScript
onSeriesClick(event) {
  const newData = this.pieData.map((item) => {
    item.exploded = item === event.dataItem ? !item.exploded : false;
    return item;
  });

  this.pieData.value = newData;
}
```

### Runnable example

[Demo Source](https://demos.telerik.com/kendo-vue-ui/knowledge-base/chart-click-to-expand-pie-series/source.txt)

## See Also

* [Kendo UI for Vue Charts Documentation](https://www.telerik.com/kendo-vue-ui/components/charts/)
* [Chart SeriesItem Component](https://www.telerik.com/kendo-vue-ui/components/charts/api/ChartSeriesItemProps/)
* [Handling Events in Kendo UI for Vue Charts](https://www.telerik.com/kendo-vue-ui/components/charts/events/)
