Coming to the interactions with the pie chart, rotation is one of them, which allows the user to rotate the pie chart to view a pie at a particular position. In this recipe, we will learn how to achieve this.
Make sure that you have set up your development environment by following the recipes outlined in Chapter 1.
Carry out the following steps:
Edit the
ch07_09.js
file.Add the following interaction item to it:
interactions: [{ type: 'rotate' }]
Save the changes.
Deploy and access the application from the browser. You may also run it using the emulator.
Use the single-finger or mouse drag, based on your device, around the center of the series. You will see the pie chart rotating.
This is taken care of by the default rotate
interaction of the Sencha Touch Chart framework.