How to create simple interactive chart with radio or option buttons
See also interactive charts.
![Interactive chart with radio or option buttons in Excel 2016 Interactive chart with radio or option buttons in Excel 2016](/images/tips/493_2016/1.png)
To create a simple interactive chart with radio or option buttons, do the following:
1. Prepare the data that will be shown in the chart:
1.1. Add the new data to select one of the teams. For example, enter in the cell G2 the number 1:
![Additional data for radio or option buttons in Excel 2016 Additional data for radio or option buttons in Excel 2016](/images/tips/493_2016/2.png)
1.2. To the next cells, add the following formula:
= CHOOSE (<index>, <first item>, <second item> ...)
Where: the index is the selected item from the following items: first item, second item, etc.
In this example:
= CHOOSE ($G$2, C2, D2)
So, you will see the column that will be shown in your chart:
![New data for radio or option buttons in Excel 2016 New data for radio or option buttons in Excel 2016](/images/tips/493_2016/3.png)
2. Create a chart with visible data:
![Chart with new data in Excel 2016 Chart with new data in Excel 2016](/images/tips/493_2016/4.png)
In this example:
- Series 1: Volumes from the range E3:E14,
- Series 2: Team A from the range H3:H14:
![Select Data Source in Excel 2016 Select Data Source in Excel 2016](/images/tips/493_2016/5.png)
3. Add the option buttons to the chart:
3.1. On the Developer tab (see Show the Developer tab), in the Controls group, click the Insert drop-down list and then choose Option Button:
![Controls, Option button in Excel 2016 Controls, Option button in Excel 2016](/images/tips/493_2016/6.png)
Add as many option buttons as the number of series, which will be selected by these option buttons and place them where you want.
In this example, just two option buttons were used:
![Chart with option buttons in Excel 2016 Chart with option buttons in Excel 2016](/images/tips/493_2016/7.png)
3.2. Format option buttons:
3.2.1. Double-click on every option button and change the label.
3.2.2. Right-click on the options button and choose Format Control... in the popup menu:
![Format Control in Excel 2016 Format Control in Excel 2016](/images/tips/493_2016/8.png)
3.2.3. In the Format Control dialog box, on the Control tab, choose the appropriate cell in the Cell link field (in this example, G2):
![Format Control Option button in Excel 2016 Format Control Option button in Excel 2016](/images/tips/493_2016/9.png)
See also this tip in French: Comment créer un graphique interactif simple avec des boutons radio ou des cases d'option.