UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

43 lines (39 loc) 1.09 kB
Ext.define('Admin.view.charts.Pie3D', { extend: 'Admin.view.charts.ChartBase', xtype: 'chartspie3dpanel', requires: [ 'Ext.chart.PolarChart', 'Ext.chart.interactions.Rotate', 'Ext.chart.series.Pie3D' ], title: '3D Pie Chart', iconCls: 'x-fa fa-pie-chart', items: [{ xtype: 'polar', colors: [ '#aed581', '#6aa5db', '#ee929c' ], platformConfig: { phone: { // On a phone the whole view becomes a vertical strip of charts, // which makes it impossible to scroll the view if touch action // started on a chart. So we use a custom touchAction config. touchAction: { panX: true, panY: true } }, '!phone': { interactions: 'rotate' } }, bind: '{pieData}', series: [{ type: 'pie3d', angleField: 'yvalue', donut: 30 }] }] });