1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    94
    Vote Rating
    0
    ahsec is on a distinguished road

      0  

    Default Unanswered: How do I have different labels on the pie and on the pie's legend

    Unanswered: How do I have different labels on the pie and on the pie's legend


    Hi

    I've been trying desperately to have a pie hold a custom field on the pie area (i.e percent of the total), and a label of the related field on the legend..but for some reason it only allows to have the same label on the pie and on the legend

    How do I do it? :-)

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    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


    It shows based on the title or yField value of the series
    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
    Mar 2011
    Location
    Germany
    Posts
    78
    Vote Rating
    0
    Answers
    3
    da_b0uncer is an unknown quantity at this point

      0  

    Default


    I used something like this:

    Code:
    {
      type: 'pie',
      xField: 'Visits',
      label: {
        field: 'Browsers'
      }
    }
    "on" the series, I get the browsers, but in the legend is "Visits Visits Visits Visits Visits"

    how do I get the browsers into the legend?
    Using Ext JS 4.1 (commercial) to build GUIs for web analytics.