1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    29
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default Unanswered: Multiple labelfield in bar charts

    Unanswered: Multiple labelfield in bar charts


    Hi
    i am very new to sencha. I just wanted to know how can we display multiple labelfields in series
    here is my code of Series
    series: [{
    type: 'bar',
    xField: 'type',
    yField: ['converted','lost','YTdecide'],
    labelField: 'number',
    stacked:false,
    axis: 'left',
    highlightCfg: {
    shadowColor: 'black',
    strokeStyle: 'white',
    shadowBlur: 15,
    zIndex: 15,
    fill: '#dd8',
    lineWidth: 2
    },
    label: {
    font: '14px Helvetica'
    },
    listeners: {
    itemtap: {
    fn: function() {
    if(this.getStacked()){
    this.setStacked(false);}
    else{this.setStacked(true);}
    },
    }
    }

    }

    so in the above code i want the labelfields to be "converted','lost','YTdecide"
    how can i do that?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,710
    Vote Rating
    436
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Is this actually a Sencha Touch 2 question?
    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.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Location
    Chile, Rancagua.
    Posts
    5
    Vote Rating
    0
    danyvalenzuela is on a distinguished road

      0  

    Default


    Hello.
    Any answer for this?
    I have the same problem. I need to show the label but is not displayed. Works only with one field.


    yField: ['value1',
    'value2,
    'value3']


    labelField:?

    Thanks.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    29
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    it belongs to sencha charts. is it not the right place to post???

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Location
    Chile, Rancagua.
    Posts
    5
    Vote Rating
    0
    danyvalenzuela is on a distinguished road

      0  

    Default


    Ok thanks.
    Anyway now that you've made the question. Do you know what is the answer?

  6. #6
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    29
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    No i still didnt find any answer..

  7. #7
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    29
    Vote Rating
    0
    anoopmishra is on a distinguished road

      0  

    Default


    Any solution to this problem?