]>
git.proxmox.com Git - sencha-touch.git/blob - src/examples/charts/app/view/piescroller/Panel.js
1 Ext
.define('Charts.view.piescroller.Panel', {
3 xtype
: 'piescrollerpanel',
6 'Charts.view.piescroller.Chart'
12 cls
: 'piescrollerpanel',
13 style
: 'border-left: 2px solid black; border-right: 2px solid black;',
17 xtype
: 'piescrollerchart',
26 '<div class= "coloredRectangle"></div>',
27 '<div style="margin-left: 40px;">{name}',
28 '<div class="myListValue">${value},000</div>',
33 itemtap: function (list
, index
) {
34 var chart
= this.up('piescrollerpanel').down('polar'),
35 series
= chart
.getSeries()[0],
36 sprite
= series
.getSprites()[index
],
37 currentAngle
= (sprite
.attr
.startAngle
+ sprite
.attr
.endAngle
) / 2;
39 // match to bottom position
40 currentAngle
-= (90 * Math
.PI
/ 180);
42 chart
.getInteractions()[0].rotateTo(-currentAngle
);