View Full Version : Does ItemHighlight even do anything at all in ST 2.1 RC2?

24 Oct 2012, 11:34 AM
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:
(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:

onGesture: function (series, item, e) {
e.highlightItem = item;
this.fireEvent('itemtap', this, item);

But I don't know if I should have to do that or not.

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
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

26 Oct 2012, 6:28 AM
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
Looks like it is working on the bar chart in our latest code