ExtJs 5 Sencha-Charts adding listener -
hi having hard time figure out what's wrong on sencha-chart bug or syntax error. start have application uses new sencha-charts of extjs 5. after adjusted came ff codes working problem when add listener it, listener event not working. please can me on this.:
items: [{ cls: 'chartclass', xtype: 'chart', flex: 1, interactions: [{ type: 'panzoom', zoomonpangesture: false, axes: { left: { maxzoom: 1 } } }], bind: '{chartstore}', minheight: 350, animation: true, style: 'background: #fff', insetpadding: '40px 40px 20px 30px', width: '100%', height: 500, insetpadding: 40, interactions: 'itemhighlight', axes: [{ type: 'numeric', position: 'left', fields: ['utilcost'], fontsize: 12, grid: true, minimum: 0 }, { type: 'category', position: 'bottom', fields: ['date'], label: { rotate: { degrees: -90 } } }], //series series: [{ type: 'bar', xfield: ['date'], yfield: ['utilcost'], style: { mingapwidth: 15, opacity: 0.80 }, highlight: { strokestyle: 'black', fillstyle: '#c1e30d', linedash: [5, 3] }, tooltip: { trackmouse: true, style: 'background: #fff', renderer: function(storeitem, item) { var title = item.series.gettitle(); this.sethtml(storeitem.get(item.series.getyfield())); } }, label: { field: 'utilcost', display: 'insideend' }, listeners:{ itemmouseup: function(item){ alert('working'); } } }];
no error on console log. elements working except firing event.please please help. i've tried lots of solution none of work. thank you
Comments
Post a Comment