Results 1 to 2 of 2

Thread: How to give different field for label and legend in piechart in extjs

  1. #1

    Default How to give different field for label and legend in piechart in extjs

    Hi
    can anybody tell How to give different field for label and legend in pie chart in extjs. I have a store with with two field with name,value.I want display name field in legend and value field in label .Now am getting same value for both label and legend


    Thanks

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    You'll need to make a renderer function for the pie series to display something other than the default label field. The legend will match the label field, but what is displayed as the label can be manipulated through the renderer.
    http://docs.sencha.com/extjs/4.2.1/#...e-cfg-renderer

Tags for this Thread

Posting Permissions

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