Results 1 to 4 of 4

Thread: Does ItemHighlight even do anything at all in ST 2.1 RC2?

  1. #1
    Sencha User jep's Avatar
    Join Date
    Sep 2010
    Posts
    862
    Vote Rating
    24
      0  

    Default 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:
    Code:
        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".

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User jep's Avatar
    Join Date
    Sep 2010
    Posts
    862
    Vote Rating
    24
      0  

    Default

    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.

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    Looks like it is working on the bar chart in our latest code
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •