-
20 Dec 2011 8:33 PM #1
Unanswered: How to get access to selected item's series in Ext.chart.Panel?
Unanswered: How to get access to selected item's series in Ext.chart.Panel?
Hi,
I was going through the bar chart example http://dev.sencha.com/deploy/touch-c.../examples/Bar/ , may i know how to get hold of the selected item's series. I mean, if i select a bar in the chart i need to get what month, value and also year (2008/2009/2010) the item falls.
Regards
Ranjith.G
-
21 Dec 2011 6:48 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
It's in the interactions
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
21 Dec 2011 10:23 PM #3
Hi,
I have tried using interactions, but i couldn't find the solution to get selected items series value e.g. Mar 2009 in the bar chart example. Can you please provide a code snippet to get this value.
Regards
Ranjith.G
-
16 May 2012 11:06 AM #4
Yes, I know this is an old post. But I figured it would be better served to post a reply here. I too would like a code snippet as I have run into a similar snag. I've already RTFM and can't find it "in the interactions".
-
25 Jun 2012 2:46 AM #5
this should be helpful
Code:interactions: [{ type: 'iteminfo', gesture:'singletap', panel:{ modal: false, centered: false, width:'80px', maxWidth: 150, cls:'chart-tooltip', bodyPadding:'4px 10px', renderTo: Ext.getBody(), }, listeners: { show: function(me, item, panel, e) { panel.setPosition(e.pageX, e.pageY); panel.update(item.value[0] +' :' + item.value[1]); //item.value gives x-axis n y-axis values of the selected or tapped item }, }],
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote