1. #1
    Sencha User jep's Avatar
    Join Date
    Sep 2010
    Posts
    862
    Vote Rating
    21
    jep will become famous soon enough jep will become famous soon enough

      0  

    Default 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:
    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,649
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User jep's Avatar
    Join Date
    Sep 2010
    Posts
    862
    Vote Rating
    21
    jep will become famous soon enough jep will become famous soon enough

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,649
    Vote Rating
    898
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Looks like it is working on the bar chart in our latest code
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1