]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/kitchensink/classic/samples/view/charts/pie/Donut.js
2 * A basic donut chart functions precisely like a pie chart. The only difference is that
3 * the center is blank. This is typically done to increase the readability of the data
4 * labels that may be around. The example makes use of two interactions: 'itemhighlight'
5 * and 'rotate'. To use the first one, hover over or tap on a pie sector. To use the
6 * second one, click or tap and then drag anywhere on the chart.
8 Ext
.define('KitchenSink.view.charts.pie.Donut', {
11 controller
: 'pie-basic',
14 // Content between example tags is omitted from code preview.
17 path
: 'classic/samples/view/charts/pie/BasicController.js'
20 path
: 'classic/samples/store/MobileOS.js'
22 bodyStyle
: 'background: transparent !important',
51 interactions
: ['rotate', 'itemhighlight'],
54 text
: 'Donut Charts - Basic',
58 x
: 40, // the sprite x position
59 y
: 20 // the sprite y position
62 text
: 'Data: IDC Predictions - 2017',
67 text
: 'Source: Internet',
82 renderer
: 'onSeriesTooltipRender'
87 style
: 'padding-top: 10px;',
95 { text
: 'OS', dataIndex
: 'os' },
96 { text
: 'Market Share', dataIndex
: 'data1', width
: 150, renderer
: 'onDataRender' }