Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    18
    Vote Rating
    0
    Alessandro.Prandini is on a distinguished road

      0  

    Default Group Bars Label

    Group Bars Label


    Hi guys, I'm trying to labeling each column in a Sencha Touch Bar graph.
    I'm using Sencha Architect and I put 3 fields in a Bar series (so it's an array of fields) but only one field can be used as label.
    I think that is wrong.
    I search the forum but I didn't find a satisfying solution.

    1.png2.png
    3.png

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Posts
    18
    Vote Rating
    0
    Alessandro.Prandini is on a distinguished road

      0  

    Default


    I have modified a small workaround (from this topic) and not it works for me.

    PHP Code:
    Ext.define('MyApp.view.Series', {    override'Ext.chart.series.Bar',
        
    updateLabelData: function () {        var me this,            store me.getStore(),            items store.getData().items,            sprites me.getSprites(),            labelField me.getLabelField(),            ijlnln2labels;
                    if (
    sprites.length && labelField) {            labels = []; 
                if(!
    Ext.isArray(labelField)){                labelField = [];            }
                for (
    0ln3 sprites.lengthln3z++) {                labelField[z] = sprites[z]._field;            }                                   for(0ln2 labelField.lengthln2j++){                    InnerLabel = [];                                for(0ln items.lengthlni++){                                        InnerLabel.push(items[i].get(labelField[j]));                                        }                labels.push(InnerLabel);            }            
                for (
    0ln sprites.lengthlni++) {                sprites[i].setAttributes({labelslabels[i]});            }        }            }}); 

  3. #3
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,936
    Vote Rating
    130
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    Thanks for your report. This is a known issue TOUCH-4455 that will be fixed in Touch 2.3.0.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

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

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1