Creating a polar chart
Pie and Radar are out-of-the-box polar charts provided by Sencha Charts. These charts use the polar coordinate system to draw sprites. Pie series does not require an axes configuration. However, Radar series does require axes
configuration, one radial
and another angular
.
Let's see how we create a polar chart with a pie
series.
Create a project using Sencha Cmd with SCE
as the application name. Edit the app/view/main/Main.js
file and replace its contents with the following code:
Ext.define('SCE.view.main.Main', { extend: 'Ext.container.Container', xtype: 'app-main', layout: { type: 'fit' }, items: [{ xtype: 'polar', title: 'Chart', height: 500, width: 500, store: { fields: ['sample', 'value'], data: [ { sample: '1', value: 100 }, { sample: '2', value...