-
24 Oct 2012 11:34 AM #1
Does ItemHighlight even do anything at all in ST 2.1 RC2?
Does ItemHighlight even do anything at all in ST 2.1 RC2?
I'm getting pretty frustrated with ItemHighlight. As near as I can tell, it does nothing in ST 2.1 RC2. But since the docs have a lot of conflicting information in the Line/Pie/Series pages about highlights I just have no idea if I'm just doing something wrong.
But as far as I can tell, there's just no code in there for things you see in the 1.x charts, like this for a pie:
itemhighlight.png
(from http://www.sencha.com/learn/touch-charts-interactions/)
I've looked at the code for HighlightItem and Ext.chart.series.Pie and I just don't see anything happening. The example in the Pie docs certainly doesn't highlight like it claims.
I figured out a way I can hack HighlightItem to at least fire an event by changing onGesture to this:
But I don't know if I should have to do that or not.Code:onGesture: function (series, item, e) { e.highlightItem = item; this.fireEvent('itemtap', this, item); },
I understand that this is an RC, and my goal is to enter bugs if there are problems like this. But it doesn't seem like bugs so much as just entire swathes of functionality that are just stubbed out (I've run into this in many other areas). I thought "release candidate" meant "this is something that's done enough that we could potentially release it".
-
26 Oct 2012 6:26 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
When it tries to normalize the highlight attribute there is no attribute alias for it so it gets dumped out so it's not going to really do anything currently IMO
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.
-
26 Oct 2012 6:28 AM #3
Yeah, the more I've dug into it the more I think it was just an unfinished bit of code. I'm surprised, considering it was the second RC. I'll bug it so it hopefully doesn't get forgotten for GA. If it does, it should at least be noted in the docs to avoid wasting people's time.
-
29 Oct 2012 5:02 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Looks like it is working on the bar chart in our latest code
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.


Reply With Quote