]>
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
: 'app/store/MobileOS.js'
22 bodyStyle
: 'background: transparent !important',
42 title
: 'Donut Charts - Basic',
44 text
: 'Data: IDC Predictions - 2017\n' +
58 interactions
: ['rotate', 'itemhighlight'],
70 renderer
: 'onSeriesTooltipRender'